From 09554c85282396258359eda121f8d5c1c9f640f0 Mon Sep 17 00:00:00 2001 From: NGPixel Date: Sun, 9 Feb 2020 22:54:14 -0500 Subject: [PATCH] fix: add missing html tags to whitelist --- server/modules/rendering/html-security/renderer.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/modules/rendering/html-security/renderer.js b/server/modules/rendering/html-security/renderer.js index 577d88ec..0e48fa02 100644 --- a/server/modules/rendering/html-security/renderer.js +++ b/server/modules/rendering/html-security/renderer.js @@ -9,8 +9,10 @@ module.exports = { a: ['class', 'id', 'href', 'style', 'target', 'title'], blockquote: ['class', 'id', 'style'], code: ['class', 'style'], + details: ['class', 'style'], div: ['class', 'id', 'style'], em: ['class', 'style'], + figure: ['class', 'style'], h1: ['class', 'id', 'style'], h2: ['class', 'id', 'style'], h3: ['class', 'id', 'style'], @@ -25,8 +27,10 @@ module.exports = { p: ['class', 'style'], path: ['d', 'style'], pre: ['class', 'style'], + section: ['class', 'style'], span: ['class', 'style'], strong: ['class', 'style'], + summary: ['class', 'style'], svg: ['width', 'height', 'viewBox', 'preserveAspectRatio', 'style'], table: ['border', 'class', 'id', 'style', 'width'], tbody: ['class', 'style'],