去掉无用空格
This commit is contained in:
@@ -226,7 +226,7 @@ FilterXSS.prototype.filterAttributes = function (tagName, attrs) {
|
||||
}
|
||||
}
|
||||
if (hasSprit) _attrs += '/';
|
||||
|
||||
|
||||
return _attrs.trim();
|
||||
};
|
||||
|
||||
@@ -242,7 +242,7 @@ FilterXSS.prototype.addNewTag = function (tag, currentPos, targetPos) {
|
||||
|
||||
var rethtml = '';
|
||||
var spos = tag.slice(0, 2) === '</' ? 2 : 1;
|
||||
|
||||
|
||||
var i = tag.indexOf(' ');
|
||||
if (i === -1) {
|
||||
var tagName = tag.slice(spos, tag.length - 1).trim();
|
||||
|
||||
Reference in New Issue
Block a user