mirror of
https://github.com/frappe/lms.git
synced 2026-04-30 12:49:26 +03:00
fix: course and batch description formatting issue
(cherry picked from commit 40d83aca36)
This commit is contained in:
@@ -708,6 +708,19 @@ export const sanitizeHTML = (text) => {
|
|||||||
text = DOMPurify.sanitize(decodeEntities(text), {
|
text = DOMPurify.sanitize(decodeEntities(text), {
|
||||||
ALLOWED_TAGS: [
|
ALLOWED_TAGS: [
|
||||||
'b',
|
'b',
|
||||||
|
'br',
|
||||||
|
'h1',
|
||||||
|
'h2',
|
||||||
|
'h3',
|
||||||
|
'h4',
|
||||||
|
'h5',
|
||||||
|
'h6',
|
||||||
|
'table',
|
||||||
|
'thead',
|
||||||
|
'tbody',
|
||||||
|
'tr',
|
||||||
|
'th',
|
||||||
|
'td',
|
||||||
'i',
|
'i',
|
||||||
'em',
|
'em',
|
||||||
'strong',
|
'strong',
|
||||||
@@ -718,6 +731,7 @@ export const sanitizeHTML = (text) => {
|
|||||||
'ol',
|
'ol',
|
||||||
'li',
|
'li',
|
||||||
'img',
|
'img',
|
||||||
|
'blockquote',
|
||||||
],
|
],
|
||||||
ALLOWED_ATTR: ['href', 'target', 'src'],
|
ALLOWED_ATTR: ['href', 'target', 'src'],
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user