mirror of
https://github.com/frappe/lms.git
synced 2026-04-25 01:49:45 +03:00
fix: course and batch description formatting issue
This commit is contained in:
@@ -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'],
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user