mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-05 23:39:52 +00:00
uncomment sanitizing
This commit is contained in:
parent
fc22bf1194
commit
7b4969e89d
@ -62,10 +62,7 @@ const truncateContent = (content, maxLength = 100) => {
|
|||||||
|
|
||||||
const convertMarkdownToHtml = (markdown) => {
|
const convertMarkdownToHtml = (markdown) => {
|
||||||
const rawHtml = marked(markdown);
|
const rawHtml = marked(markdown);
|
||||||
return rawHtml;
|
return DOMPurify.sanitize(rawHtml)
|
||||||
/* console.log('rawhtml', rawHtml)
|
|
||||||
console.log('sanitized', DOMPurify.sanitize(rawHtml))
|
|
||||||
return DOMPurify.sanitize(rawHtml)*/
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const truncateMarkdownContent = (content, maxLength = 100) => {
|
const truncateMarkdownContent = (content, maxLength = 100) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user