From 7962df6983c932f5d7f07bcc71f31b3a8df3670d Mon Sep 17 00:00:00 2001 From: okbel Date: Mon, 5 Mar 2018 14:14:22 -0300 Subject: [PATCH] adding br to the purifier --- plugins/talk-plugin-rich-text/server/config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/talk-plugin-rich-text/server/config.js b/plugins/talk-plugin-rich-text/server/config.js index 42c6bd756..8d0fc87d3 100644 --- a/plugins/talk-plugin-rich-text/server/config.js +++ b/plugins/talk-plugin-rich-text/server/config.js @@ -13,7 +13,7 @@ const config = { // TODO: move to admin eventually // Super strict rules to make sure users only submit the tags they are allowed - dompurify: { ALLOWED_TAGS: ['b', 'i', 'blockquote'] }, + dompurify: { ALLOWED_TAGS: ['b', 'i', 'blockquote', 'br'] }, // Secure config for jsdom even when DOMPurify creates a document without a browsing context jsdom: {