We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0fb70a1 commit edc3a31Copy full SHA for edc3a31
1 file changed
public/js/render.js
@@ -3,6 +3,10 @@ var whiteListAttr = ['id', 'class', 'style'];
3
4
var filterXSSOptions = {
5
allowCommentTag: true,
6
+ escapeHtml: function (html) {
7
+ // to allow html comment in multiple lines
8
+ return html.replace(/<(.*?)>/g, '<$1>');
9
+ },
10
onIgnoreTag: function (tag, html, options) {
11
// allow style in html
12
if (whiteListTag.indexOf(tag) !== -1) {
0 commit comments