mirror of
https://github.com/wekan/wekan.git
synced 2025-12-24 03:10:12 +01:00
Escape HTML comment tags so that HTML comments are visible.
Thanks to xet7 !
This commit is contained in:
parent
22fc643f25
commit
167863d957
1 changed files with 1 additions and 1 deletions
|
|
@ -65,6 +65,6 @@ if (Package.ui) {
|
||||||
text = Blaze._toText(self.templateContentBlock, HTML.TEXTMODE.STRING);
|
text = Blaze._toText(self.templateContentBlock, HTML.TEXTMODE.STRING);
|
||||||
}
|
}
|
||||||
|
|
||||||
return HTML.Raw(DOMPurify.sanitize(Markdown.render(text), {ALLOW_UNKNOWN_PROTOCOLS: true}));
|
return HTML.Raw(DOMPurify.sanitize(Markdown.render(text).replace('<!--', '<!--').replace('-->', '-->'), {ALLOW_UNKNOWN_PROTOCOLS: true}));
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue