Commit Graph

39 Commits

Author SHA1 Message Date
Zongmin Lei
1811054bc4 publish v0.3.7 dist 2017-12-29 09:54:24 +08:00
Zongmin Lei
c3eac344e4 publish v0.3.6 2017-12-21 15:07:25 +08:00
Zongmin Lei
32a4bece31 translate all comments to English 2017-12-21 14:19:10 +08:00
Christian Schoeppler
2728bb88f7 added tel number handling for links 2017-11-24 13:57:30 +01:00
ztree
903769c37d passed test:
assert.equal(xss('<a\ttarget="_blank"\ntitle="bbb">'), '<a target="_blank" title="bbb">');
    assert.equal(xss('<a\ntarget="_blank"\ttitle="bbb">'), '<a target="_blank" title="bbb">');
    assert.equal(xss('<a\n\n\n\ttarget="_blank"\t\t\t\ntitle="bbb">'), '<a target="_blank" title="bbb">');
2017-08-31 16:41:44 +08:00
老雷
e4ff2cf93a Merge pull request #109 from zTree/master
parseAttr 对特殊 html 进行支持(例如 word 复制的 html 内容)
2017-08-29 13:56:00 +08:00
zTree
9602b21171 Update xss.js
对特殊 html 进行支持(例如 word 复制的 html 内容)

如果只通过 空格进行区分,就会出现以下问题:
```
<img width=100 height=200
src='....'/>
```

这种没有空格,只有换行的 html 转换后会变为

```
<img width="100" height="200 src=&quot;....&quot;“/>
```
2017-08-21 10:57:04 +08:00
Zongmin Lei
18e0258ff2 v0.3.3 2016-12-20 09:14:28 +08:00
Zongmin Lei
2212d5229f v0.2.17 2016-11-06 11:06:22 +08:00
Zongmin Lei
2945de0dc2 v0.2.13 2016-05-05 21:17:40 +08:00
Zongmin Lei
b1579337cf build 2016-04-25 18:11:17 +08:00
Dima_Ryskin
020d9d8456 Merge remote-tracking branch 'upstream/master'
* upstream/master:
  v0.2.11 update cssfilter@0.0.7 fixed issue #52

# Conflicts:
#	dist/xss.min.js
2016-04-25 11:45:01 +03:00
Zongmin Lei
77ea436b14 v0.2.11 update cssfilter@0.0.7 fixed issue #52 2016-04-25 00:25:54 +08:00
Dima_Ryskin
fa3b9103b4 updated readme.md with correct usage of AMD. Removed obsolete AMD example. 2016-04-24 16:30:39 +03:00
Dima_Ryskin
08b5fd058b removed AMD 'define' call, since when bundled with other modules, only the first define() call actually registers the module (which would be one of the dependencies) 2016-04-24 16:09:16 +03:00
Zongmin Lei
f18825d226 v0.2.10 2015-12-23 12:42:12 +08:00
Zongmin Lei
ac93b2ef4b 修正 issue #41 href默认允许#开头 2015-12-01 22:11:03 +08:00
Zongmin Lei
4ff066f0f6 修正 issue #41 href默认允许#开头 2015-12-01 21:53:59 +08:00
Zongmin Lei
ce40ba3795 v0.2.7 2015-08-18 18:34:30 +08:00
Zongmin Lei
594b59baf1 v0.2.6 2015-08-06 15:56:32 +08:00
Zongmin Lei
55924144c6 v0.2.5 2015-08-04 08:51:31 +08:00
Zongmin Lei
1373b674c3 v0.2.4 2015-08-02 21:21:30 +08:00
Zongmin Lei
4e17c426f5 v0.2.3 2015-07-30 12:01:30 +08:00
Zongmin Lei
467bfe1c8c v0.2.2 update cssfilter@0.0.5 2015-05-24 23:35:42 +08:00
Zongmin Lei
d021705d99 v0.2.1 修正util问题 2015-05-06 00:45:28 +08:00
Zongmin Lei
4b20d207e3 build 0.2.0 2015-05-05 22:52:04 +08:00
Zongmin Lei
900705dc04 build 命令 2015-04-13 13:24:55 +08:00
Zongmin Lei
d8cccc4982 v0.1.21 2015-03-27 23:54:44 +08:00
Zongmin Lei
526ed801c9 v0.1.20 2015-01-22 14:21:55 +08:00
Zongmin Lei
6f86cc8e15 v0.1.19 2015-01-22 14:08:01 +08:00
Zongmin Lei
c04ef2c002 v0.1.18 2015-01-20 13:07:35 +08:00
Zongmin Lei
85594379e2 支持AMD 2015-01-16 20:27:23 +08:00
Zongmin Lei
04aaceb1b0 v0.1.16 2015-01-12 14:05:10 +08:00
Zongmin Lei
abb75f870a v0.1.14 2014-11-28 15:25:34 +08:00
Zongmin Lei
817ed8594f v0.1.12 2014-09-12 12:25:13 +08:00
Zongmin Lei
eb7bcd395a v0.1.11 2014-09-06 20:25:02 +08:00
Zongmin Lei
4492d1d907 v0.1.9 2014-04-18 22:06:38 +08:00
Zongmin Lei
bd7501bd6d v0.1.8 2014-04-03 12:08:34 +08:00
Zongmin Lei
32c6ece7c0 打包文件保存到 dist 目录 2014-03-19 11:17:48 +08:00