fix(n8n Form Node): Add html table tags to allowedTags, CSP headers on form completion, free text sanitization removed (#19446)

This commit is contained in:
Michael Kret
2025-09-16 10:31:23 +03:00
committed by GitHub
parent fe9af0b753
commit 7ea920dbe7
5 changed files with 296 additions and 5 deletions

View File

@@ -54,6 +54,14 @@ export function sanitizeHtml(text: string) {
'ol',
'li',
'p',
'table',
'thead',
'tbody',
'tfoot',
'td',
'tr',
'th',
'br',
],
allowedAttributes: {
a: ['href', 'target', 'rel'],
@@ -69,6 +77,8 @@ export function sanitizeHtml(text: string) {
'referrerpolicy',
],
source: ['src', 'type'],
td: ['colspan', 'rowspan', 'scope', 'headers'],
th: ['colspan', 'rowspan', 'scope', 'headers'],
},
allowedSchemes: ['https', 'http'],
allowedSchemesByTag: {