refactor: fix lint warning on public/js/render.js

Signed-off-by: BoHong Li <a60814billy@gmail.com>
This commit is contained in:
BoHong Li 2019-04-12 17:54:46 +08:00
parent 73bc7ae8e6
commit 33fcfd416d
No known key found for this signature in database
GPG Key ID: 9696D5590D58290F
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ var filterXSSOptions = {
onIgnoreTag: function (tag, html, options) {
// allow comment tag
if (tag === '!--') {
// do not filter its attributes
// do not filter its attributes
return html.replace(/<(?!!--)/g, '&lt;').replace(/-->/g, '__HTML_COMMENT_END__').replace(/>/g, '&gt;').replace(/__HTML_COMMENT_END__/g, '-->')
}
},