v0.1.19
This commit is contained in:
3
dist/xss.js
vendored
3
dist/xss.js
vendored
@@ -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;
|
||||||
|
|||||||
@@ -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": [
|
||||||
|
|||||||
Reference in New Issue
Block a user