mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-20 19:32:15 +00:00
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:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user