From e5b925abf8a20b063eb33bedc85bcf2d6088ee7d Mon Sep 17 00:00:00 2001 From: zadam Date: Sat, 21 Oct 2023 18:03:06 +0200 Subject: [PATCH] added extra elements to the html sanitizer --- src/services/html_sanitizer.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/services/html_sanitizer.js b/src/services/html_sanitizer.js index 20fb0d70a..99bb567ad 100644 --- a/src/services/html_sanitizer.js +++ b/src/services/html_sanitizer.js @@ -28,8 +28,10 @@ function sanitize(dirtyHtml) { allowedTags: [ 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'blockquote', 'p', 'a', 'ul', 'ol', 'li', 'b', 'i', 'strong', 'em', 'strike', 's', 'del', 'abbr', 'code', 'hr', 'br', 'div', - 'table', 'thead', 'caption', 'tbody', 'tr', 'th', 'td', 'pre', 'section', 'img', - 'figure', 'figcaption', 'span', 'label', 'input', + 'table', 'thead', 'caption', 'tbody', 'tfoot', 'tr', 'th', 'td', 'pre', 'section', 'img', + 'figure', 'figcaption', 'span', 'label', 'input', 'details', 'summary', 'address', 'aside', 'footer', + 'header', 'hgroup', 'main', 'nav', 'dl', 'dt', 'menu', 'bdi', 'bdo', 'dfn', 'kbd', 'mark', 'q', 'time', + 'var', 'wbr', 'area', 'map', 'track', 'video', 'audio', 'picture', 'del', 'ins', 'en-media' // for ENEX import ], allowedAttributes: {