html.json•3.54 kB
{
"nodeType": "n8n-nodes-base.html",
"displayName": "HTML",
"description": "Work with HTML",
"version": [
1,
1.1,
1.2
],
"properties": [
{
"name": "operation",
"displayName": "Operation",
"type": "options",
"default": "generateHtmlTemplate",
"options": [
{
"name": "Generate HTML Template",
"value": "generateHtmlTemplate"
},
{
"name": "Extract HTML Content",
"value": "extractHtmlContent"
},
{
"name": "Convert to HTML Table",
"value": "convertToHtmlTable"
}
]
},
{
"name": "html",
"displayName": "HTML Template",
"type": "string",
"default": null,
"description": "HTML template to render",
"displayOptions": {
"show": {
"operation": [
"generateHtmlTemplate"
]
}
}
},
{
"name": "notice",
"displayName": "<b>Tips</b>: Type ctrl+space for completions. Use <code>{{ }}</code> for expressions and <code><style></code> tags for CSS. JS in <code><script></code> tags is included but not executed in n8n.",
"type": "notice",
"default": "",
"displayOptions": {
"show": {
"operation": [
"generateHtmlTemplate"
]
}
}
},
{
"name": "sourceData",
"displayName": "Source Data",
"type": "options",
"default": "json",
"description": "If HTML should be read from binary or JSON data",
"options": [
{
"name": "Binary",
"value": "binary"
},
{
"name": "JSON",
"value": "json"
}
],
"displayOptions": {
"show": {
"operation": [
"extractHtmlContent"
]
}
}
},
{
"name": "dataPropertyName",
"displayName": "Input Binary Field",
"type": "string",
"default": "data",
"required": true,
"displayOptions": {
"show": {
"operation": [
"extractHtmlContent"
],
"sourceData": [
"binary"
]
}
}
},
{
"name": "options",
"displayName": "Options",
"type": "collection",
"default": {},
"description": "Whether to remove automatically all spaces and newlines from the beginning and end of the values",
"placeholder": "Add option",
"options": [
{
"name": "trimValues",
"displayName": "Trim Values",
"type": "boolean",
"default": true,
"description": "Whether to remove automatically all spaces and newlines from the beginning and end of the values"
},
{
"name": "cleanUpText",
"displayName": "Clean Up Text",
"type": "boolean",
"default": true,
"description": "Whether to remove leading and trailing whitespaces, line breaks (newlines) and condense multiple consecutive whitespaces into a single space"
}
],
"displayOptions": {
"show": {
"operation": [
"extractHtmlContent"
]
}
}
}
],
"credentialsConfig": [],
"io": {
"inputs": [],
"outputs": [],
"outputNames": [],
"hints": {}
},
"wiring": {
"role": "generic",
"requires": [],
"optional": [],
"consumedBy": [],
"consumes": [],
"produces": []
}
}