Describe the problem/error/question
Before the recent updates that sanitize HTML in form nodes, I was using a custom HTML form field to return some data to the user from the workflow using a HTML table. This is now broken, even with HTML that doesn’t contain <script>
, <style>
or <input>
tags
What is the error message (if any)? N/A
Share the output returned by the last node
This is what my Code node generates for the HTML:
[
{
"tableHTML": "\n <h2>Sheets needed for Job 123456 - Test Job</h2>\n <br>\n <table>\n <tr style=\"background-color: #f2f2f2;\">\n <th>Code</th>\n <th>Description</th>\n <th>Quantity</th>\n <th>Stock</th>\n </tr>\n \n <tr>\n <td>SM10AL3012</td>\n <td>Sheet Metal 1.0mm Aluminium 3050 x 1200</td>\n <td>2.4</td>\n <td>50</td>\n </tr>\n \n <tr>\n <td>SM20GL3012</td>\n <td>Sheet Metal 2.0mm Galv 3050 x 1200</td>\n <td>0.1</td>\n <td>-24.8</td>\n </tr>\n </table>"
}
]
Information on your n8n setup
- n8n version: 1.81.4
- Database (default: SQLite): Postgres
- n8n EXECUTIONS_PROCESS setting (default: own, main): default
- Running n8n via (Docker, npm, n8n cloud, desktop app): docker
- Operating system: Ubuntu Server 22.04