From 33fcfd416d4fbfb7428deb9f2915cd73ed0c19a3 Mon Sep 17 00:00:00 2001 From: BoHong Li Date: Fri, 12 Apr 2019 17:54:46 +0800 Subject: [PATCH] refactor: fix lint warning on public/js/render.js Signed-off-by: BoHong Li --- public/js/render.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/js/render.js b/public/js/render.js index 87e5cfdf..d37f38ef 100644 --- a/public/js/render.js +++ b/public/js/render.js @@ -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, '<').replace(/-->/g, '__HTML_COMMENT_END__').replace(/>/g, '>').replace(/__HTML_COMMENT_END__/g, '-->') } },