From c2fcb30f23e97ecd943dda3e091f7e959fb7161f Mon Sep 17 00:00:00 2001 From: Alexander Sorokin <10401817+brawaru@users.noreply.github.com> Date: Tue, 26 Dec 2023 15:32:05 +0100 Subject: [PATCH] Whitelist style attribute on p elements --- lib/helpers/parse.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/helpers/parse.js b/lib/helpers/parse.js index 6bf9fe0b6..65c8932ad 100644 --- a/lib/helpers/parse.js +++ b/lib/helpers/parse.js @@ -22,6 +22,7 @@ export const configuredXss = new xss.FilterXSS({ th: [...xss.whiteList.th, 'style'], picture: [], source: ['media', 'sizes', 'src', 'srcset', 'type'], + p: [...xss.whiteList.p, 'style'], }, css: { whiteList: {