Merge pull request #109 from zTree/master
parseAttr 对特殊 html 进行支持(例如 word 复制的 html 内容)
This commit is contained in:
2
dist/xss.js
vendored
2
dist/xss.js
vendored
@@ -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) {
|
||||
|
||||
@@ -157,7 +157,7 @@ function parseAttr (html, onAttr) {
|
||||
}
|
||||
}
|
||||
}
|
||||
if (c === ' ') {
|
||||
if (/\s|\n/.test(c)) {
|
||||
if (tmpName === false) {
|
||||
j = findNextEqual(html, i);
|
||||
if (j === -1) {
|
||||
|
||||
Reference in New Issue
Block a user