LEI Zongmin
9c92272047
publish: v1.0.15
2024-03-03 10:28:40 +08:00
Sviataslau Shchaurouski
72844ddc6f
fix: problem with not closed tag ( #262 )
2022-08-16 21:50:26 +08:00
LEI Zongmin
c2419c4d14
publish: v1.0.13
2022-06-07 00:05:03 +08:00
LEI Zongmin
d7654e5f14
fix: use var instead of let
2022-06-03 23:50:24 +08:00
lumburr
c536c0da30
fix: problem with backslash and space at the beginning of attribute value ( #253 )
2022-05-27 23:09:19 +08:00
Matthew Benjamin Schupack
6914bbaf93
feat: add support for allowList as an alias for whiteList
2021-12-13 13:29:29 -05:00
老雷
3826e74155
chore: build v1.0.10
2021-10-08 09:01:02 +00:00
Zongmin Lei
901b771960
style: reformat all source code by prettier
2021-05-06 13:32:47 +08:00
Zongmin Lei
005098be59
feat: Add <strike> to default whitelist
2021-05-06 13:11:03 +08:00
Zongmin Lei
dcf1486845
feat: Add <audio crossorigin muted>, <video crossorigin muted playsinline poster> to default whitelist
2021-05-06 13:08:35 +08:00
Zongmin Lei
2f5dd55ca0
fix: recover <summary> on the default whitelist
2021-05-06 12:47:47 +08:00
Zongmin Lei
cff16d9ba1
chore: build dist
2021-05-06 11:29:23 +08:00
Philip Allgaier
cb35b4ca02
Add <summary> to default whitelist
...
Since `<details>` is in there, it makes sense for `<summary>` as well since that is used inside `<details>` to define the text label/title for the collapsible element.
2021-01-24 20:30:11 +01:00
Tim Gates
cf5a36696a
docs: Fix simple typo, doube -> double
...
There is a small typo in dist/xss.js, lib/default.js.
Should read `double` rather than `doube`.
2020-09-01 07:48:41 +10:00
Zongmin Lei
ccff2e55c2
publish: v1.0.8
2020-07-27 10:21:57 +08:00
Zongmin Lei
fbe45f6b93
publish: v1.0.7
2020-06-08 10:58:18 +08:00
Zongmin Lei
bc516a1863
fix: turn on strict mode for xss.js
2019-04-13 11:43:18 +08:00
Zongmin Lei
75c7868e3e
publish: v1.0.5
2019-03-20 14:09:01 +08:00
Zongmin Lei
6abc5b52da
update build
2018-05-25 14:43:28 +08:00
Zongmin Lei
58d1140d20
feat: support for Web Worker env issue #124
2018-05-24 15:49:29 +08:00
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="...."“/>
```
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
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
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
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