fix stripCommentTag
This commit is contained in:
@@ -351,7 +351,7 @@ function StripTagBody (tags, next) {
|
||||
function stripCommentTag (html) {
|
||||
return html.replace(STRIP_COMMENT_TAG_REGEXP, '');
|
||||
}
|
||||
var STRIP_COMMENT_TAG_REGEXP = /<!--(.|\s)*?-->/gm;
|
||||
var STRIP_COMMENT_TAG_REGEXP = /<!--[\s\S]*?-->/g;
|
||||
|
||||
|
||||
exports.whiteList = whiteList;
|
||||
|
||||
Reference in New Issue
Block a user