Closed LeoEatle closed 3 years ago
Now valid tag is <constructor>
:)
In liveDemo exactly
isWhite: whiteList.hasOwnProperty(tag)
This line shows the problem.
So we can just use whiteList: {}
to replace it.
Fixed in ce8fd4244260a5f3e9dafe4e2586f206fb9bcd80
文档指示如果想删除所有标签,需要这么做
但是这样会导致
<map>
标签被识别为whitelist中,因为whitelist是个数组,导致map in whitelist === true
,数组具有map
方法。可以采用
whiteList: {}
来避免这个错误