去掉无用空格

This commit is contained in:
Zongmin Lei
2013-11-05 15:27:35 +08:00
parent 4e041a4d8d
commit b4f37de463

View File

@@ -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();