Add comment handler in html sanitizer. Fixes #519

This commit is contained in:
benweet 2014-09-21 12:02:17 +01:00
parent 3454c87d6f
commit 19c2be0749

View File

@ -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('-->');
}
} }
}; };
} }