This commit is contained in:
Zongmin Lei
2015-01-22 14:08:01 +08:00
parent 89c6930b9e
commit 6f86cc8e15
2 changed files with 1 additions and 4 deletions

3
dist/xss.js vendored
View File

@@ -722,9 +722,6 @@ FilterXSS.prototype.process = function (html) {
html = html.toString(); html = html.toString();
if (!html) return ''; if (!html) return '';
// 去除不可见字符
html = DEFAULT.stripBlankChar(html);
var me = this; var me = this;
var options = me.options; var options = me.options;
var whiteList = options.whiteList; var whiteList = options.whiteList;

View File

@@ -1,7 +1,7 @@
{ {
"name": "xss", "name": "xss",
"main": "./lib/index.js", "main": "./lib/index.js",
"version": "0.1.18", "version": "0.1.19",
"description": "Sanitize untrusted HTML (to prevent XSS) with a configuration specified by a Whitelist. 根据白名单过滤HTML(防止XSS攻击)", "description": "Sanitize untrusted HTML (to prevent XSS) with a configuration specified by a Whitelist. 根据白名单过滤HTML(防止XSS攻击)",
"author": "leizongmin <leizongmin@gmail.com> (http://ucdok.com)", "author": "leizongmin <leizongmin@gmail.com> (http://ucdok.com)",
"contributors": [ "contributors": [