From 0d50d730d96ffff5a403872bc8c2265f6e013e33 Mon Sep 17 00:00:00 2001 From: advplyr Date: Sat, 25 Feb 2023 15:05:44 -0600 Subject: [PATCH] Update:Html sanitizer to allow br tag --- server/utils/htmlSanitizer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/utils/htmlSanitizer.js b/server/utils/htmlSanitizer.js index e9473d30..68d92c85 100644 --- a/server/utils/htmlSanitizer.js +++ b/server/utils/htmlSanitizer.js @@ -1,10 +1,10 @@ const sanitizeHtml = require('../libs/sanitizeHtml') -const {entities} = require("./htmlEntities"); +const { entities } = require("./htmlEntities"); function sanitize(html) { const sanitizerOptions = { allowedTags: [ - 'p', 'ol', 'ul', 'li', 'a', 'strong', 'em', 'del' + 'p', 'ol', 'ul', 'li', 'a', 'strong', 'em', 'del', 'br' ], disallowedTagsMode: 'discard', allowedAttributes: {