Hi, I’m new on N8N, I’m creating a workflow who use lot of Form nodes, honestly I found very useful HTML fields, very useful to give some format and colors to Forms. But what was my surprise when I started using it, I noted that a considerable number of HTML’s tags are removed or sanitized, I’m not talking abut , and . Style attributes are removed and almost all attributes that I tried so far are removed too. I tried to go back using tag for text format, but even is sanitized, also
.
There is a reference of what HTML tags can be used on HTML’s Fields on Forms?
Information on your n8n setup
n8n version: 1.112.3
Database (default: SQLite): yes
n8n EXECUTIONS_PROCESS setting (default: own, main): own
Running n8n via (Docker, npm, n8n cloud, desktop app): npm
”You can use the HTML field to enrich your form page by including things like links, images, videos, and more. n8n will render the content with the rest of the form fields in the normal document flow.
Because custom HTML content is read-only, these fields aren’t included in the form output data by default. To include the raw HTML content in the node output, provide a name for the data using the Element Name field.
The HTML field doesn’t support <script>, <style>, or <input> elements.
If you’re using the Form Ending Page Type, you can fully customize the final page that you send users (including the use of <script>, <style>, and <input> elements) by selecting the On n8n Form Submission parameter to Show Text.”
Thanks a lot for you answer. I found trully limitating this exceeded sanitization, I understand the limitation for certains script, link and input tags, but I can’t use hr html tag just to make some fields grouping in the form, also I didn’t found a way to set some colors, font size to text, because as I said non attribute work for me, not style or any other even in the allowed tags.
I asked for a reference because I found that docs is not too specific also, may be is my n8n deploy, I’m running n8n locally with npm on Windows machine, is there any env var that I need to set on n8n for allow more HTML on Forms?