fix issue #120, tag in whiteList should be replaced with whiteList.hasOwnProperty(tag)

This commit is contained in:
Zongmin Lei
2017-12-21 15:06:39 +08:00
parent 46bb99dd67
commit 17f322fde2

View File

@@ -148,7 +148,7 @@ FilterXSS.prototype.process = function(html) {
sourcePosition: sourcePosition,
position: position,
isClosing: isClosing,
isWhite: tag in whiteList
isWhite: whiteList.hasOwnProperty(tag)
};
// call `onTag()`