fix: course and batch description formatting issue

(cherry picked from commit 40d83aca36)
This commit is contained in:
Jannat Patel
2026-03-02 13:37:28 +05:30
committed by Mergify
parent 14c14a357e
commit b76b2dcdc7
+14
View File
@@ -708,6 +708,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',
@@ -718,6 +731,7 @@ export const sanitizeHTML = (text) => {
'ol',
'li',
'img',
'blockquote',
],
ALLOWED_ATTR: ['href', 'target', 'src'],
})