Bug Description
Despite what the docs say at Form Ending#form-ending
Use Show Text to display a final page defined by arbitrary plain text and HTML. Fill in the Text field with the HTML or plain text content you wish to show
It doesn't seem possible to return HTML content. Any HTML tags seem to be stripped, it also seems newlines get inserted at around 74 chars wide when I tried to return a raw JSON blob 🤷♂️.
This seems like it never will have worked based on responseText: sanitizeHtml(responseText) in https://github.com/n8n-io/n8n/blob/master/packages/nodes-base/nodes/Form/formCompletionUtils.ts#L74
To Reproduce
- Add a Form node
- Page Type:
Form Ending
- On n8n Form Submission:
Show Text
- Add basic HTML in the Text field:
<h1>This is a heading</h1>
Expected behavior
The raw input should be returned.
I was hoping I could use the Respond to Webhook node with its Text response which returns the raw response body and ALSO allows setting HTTP headers like content-type where you can e.g. set text/html, application/json, application/xml.
Operating System
Docker container 1.94.1
n8n Version
1.94.1
Node.js Version
Docker container 1.94.1
Database
PostgreSQL
Execution mode
queue
Bug Description
Despite what the docs say at Form Ending#form-ending
It doesn't seem possible to return HTML content. Any HTML tags seem to be stripped, it also seems newlines get inserted at around 74 chars wide when I tried to return a raw JSON blob 🤷♂️.
This seems like it never will have worked based on
responseText: sanitizeHtml(responseText)in https://github.com/n8n-io/n8n/blob/master/packages/nodes-base/nodes/Form/formCompletionUtils.ts#L74To Reproduce
Form EndingShow Text<h1>This is a heading</h1>Expected behavior
The raw input should be returned.
I was hoping I could use the Respond to Webhook node with its
Textresponse which returns the raw response body and ALSO allows setting HTTP headers likecontent-typewhere you can e.g. settext/html,application/json,application/xml.Operating System
Docker container 1.94.1
n8n Version
1.94.1
Node.js Version
Docker container 1.94.1
Database
PostgreSQL
Execution mode
queue