Merge pull request #109 from zTree/master

parseAttr 对特殊 html 进行支持(例如 word 复制的 html 内容)
This commit is contained in:
老雷
2017-08-29 13:56:00 +08:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

2
dist/xss.js vendored
View File

@@ -610,7 +610,7 @@ function parseAttr (html, onAttr) {
}
}
}
if (c === ' ') {
if (/\s|\n/.test(c)) {
if (tmpName === false) {
j = findNextEqual(html, i);
if (j === -1) {