From 40d83aca366990da1096c4d646d733e3032adc47 Mon Sep 17 00:00:00 2001 From: Jannat Patel Date: Mon, 2 Mar 2026 13:37:28 +0530 Subject: [PATCH] fix: course and batch description formatting issue --- frontend/src/utils/index.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/frontend/src/utils/index.js b/frontend/src/utils/index.js index 541c8a16..989f0f2a 100644 --- a/frontend/src/utils/index.js +++ b/frontend/src/utils/index.js @@ -706,6 +706,19 @@ export const sanitizeHTML = (text) => { text = DOMPurify.sanitize(decodeEntities(text), { ALLOWED_TAGS: [ 'b', + 'br', + 'h1', + 'h2', + 'h3', + 'h4', + 'h5', + 'h6', + 'table', + 'thead', + 'tbody', + 'tr', + 'th', + 'td', 'i', 'em', 'strong', @@ -716,6 +729,7 @@ export const sanitizeHTML = (text) => { 'ol', 'li', 'img', + 'blockquote', ], ALLOWED_ATTR: ['href', 'target', 'src'], })