We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d1d6d58 commit 9b00afbCopy full SHA for 9b00afb
1 file changed
public/js/render.js
@@ -27,7 +27,7 @@ var filterXSSOptions = {
27
whiteList: whiteList,
28
escapeHtml: function (html) {
29
// allow html comment in multiple lines
30
- return html.replace(/<(.*?)>/g, '<$1>')
+ return html.replace(/<(?!!--)/g, '<').replace(/-->/g, '__HTML_COMMENT_END__').replace(/>/g, '>').replace(/__HTML_COMMENT_END__/g, '-->')
31
},
32
onIgnoreTag: function (tag, html, options) {
33
// allow comment tag
0 commit comments