Add comment handler in html sanitizer. Fixes #519
This commit is contained in:
parent
3454c87d6f
commit
19c2be0749
@ -387,6 +387,13 @@ define([
|
|||||||
if(!ignore) {
|
if(!ignore) {
|
||||||
out(encodeEntities(chars));
|
out(encodeEntities(chars));
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
comment: function(comment) {
|
||||||
|
if(!ignore) {
|
||||||
|
out('<!--');
|
||||||
|
out(encodeEntities(comment));
|
||||||
|
out('-->');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user