From 83a5ebc5e15e307782bf5d56f2a0561093f6150e Mon Sep 17 00:00:00 2001 From: lesion Date: Mon, 25 Oct 2021 13:17:49 +0200 Subject: [PATCH] add i and span to allowed tags --- server/helpers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/helpers.js b/server/helpers.js index 31102966..42268662 100644 --- a/server/helpers.js +++ b/server/helpers.js @@ -57,7 +57,7 @@ module.exports = { sanitizeHTML (html) { return domPurify.sanitize(html, { - ALLOWED_TAGS: ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'br', + ALLOWED_TAGS: ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'br', 'i', 'span', 'h6', 'b', 'a', 'li', 'ul', 'ol', 'code', 'blockquote', 'u', 's', 'strong'], ALLOWED_ATTR: ['href', 'target'] })