Commit Graph

417 Commits

Author SHA1 Message Date
lumburr
9f6a37b34d fix: comment has encoded (#257) 2022-05-27 22:57:50 +08:00
老雷
621b4c220e Merge pull request #252 from lumburr/feat/eslint
feat: add eslint:recommended check
2022-03-11 09:22:58 +08:00
lumburr
1e34b3de23 feat: add eslint:recommended check 2022-03-09 19:39:57 +08:00
Zongmin Lei
ed295cae25 publish: v1.0.11 2022-03-06 15:21:07 +08:00
老雷
daa471e560 Merge pull request #249 from schu34/ms/add-allowlist-support
feat: add support for allowList as an alias for whiteList
2021-12-31 21:05:29 +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
380a4bae2b publish: v1.0.10 2021-10-08 16:50:33 +08:00
Zongmin Lei
699acdea7d fix: #239 stripCommentTag DoS attack 2021-10-08 16:23:28 +08:00
老雷
9cbe2f1066 Create SECURITY.md 2021-09-19 12:04:35 +08:00
Zongmin Lei
bdd1b03896 chore: fix nodejs.yml remove node-version 8.x 2021-05-07 00:10:01 +08:00
Zongmin Lei
3be6a07fae chore: update devDependencies to latest version 2021-05-06 14:02:14 +08:00
Zongmin Lei
948dfb19c1 docs: update CI badge 2021-05-06 13:55:18 +08:00
Zongmin Lei
831a6a289d chore: github action nodejs.yml run test-cov instead of test 2021-05-06 13:48:53 +08:00
Zongmin Lei
0ba3cdbc4b chore: remove .travis.yml 2021-05-06 13:47:04 +08:00
Zongmin Lei
cdee88ee16 chore: fix github action nodejs.yml 2021-05-06 13:45:18 +08:00
老雷
624aba94dc chore: add github action nodejs.yml 2021-05-06 13:43:41 +08:00
Zongmin Lei
901b771960 style: reformat all source code by prettier 2021-05-06 13:32:47 +08:00
Zongmin Lei
0b15109107 docs: update changelog 2021-05-06 13:29:53 +08:00
Zongmin Lei
3e153f585d fix: typings onTag options 2021-05-06 13:22:53 +08:00
Zongmin Lei
82cb63f0fe docs: update changelog 2021-05-06 13:16:49 +08:00
Zongmin Lei
a1d9b44c36 fix: typings IWhiteList allow any tag name 2021-05-06 13:15:50 +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
老雷
f4c0b29c3f Merge pull request #220 from daraz999/patch-1
Add <figure> and <figcaption> to default whitelist
2021-05-06 12:53:28 +08:00
Zongmin Lei
2f5dd55ca0 fix: recover <summary> on the default whitelist 2021-05-06 12:47:47 +08:00
Zongmin Lei
d94ac2a584 publish: v1.0.9 2021-05-06 11:32:55 +08:00
Zongmin Lei
4452638995 chore: add package-lock.json to .ignore 2021-05-06 11:29:51 +08:00
Zongmin Lei
cff16d9ba1 chore: build dist 2021-05-06 11:29:23 +08:00
老雷
730a0b5eae Merge pull request #218 from TomAnthony/fix-whitespace-bypass
Fix whitespace bypass
2021-05-06 11:22:53 +08:00
老雷
6586f4966e Merge pull request #216 from spacegaier/patch-1
Add `<summary>` to default whitelist
2021-05-06 11:20:15 +08:00
老雷
20869bef8c Merge pull request #222 from aprilandjan/master
docs: correct empty whiteList typing in examples
2021-05-06 11:19:04 +08:00
aprilandjan
3860fe7cca docs: correct empty whiteList typing in examples 2021-02-26 19:22:01 +08:00
Darius Smaliukas
0024eefd42 Add <figure> and <figcaption> to default whitelist
* Figure https://developer.mozilla.org/en-US/docs/Web/HTML/Element/figure
* Figcaption https://developer.mozilla.org/en-US/docs/Web/HTML/Element/figcaption

Most RSS feeds are using these tags to wrap around media content. I propose to add these tags to the default whitelist because they don't require any attribute and do not open any XSS vulnerability
2021-02-19 17:08:18 +02:00
Tom Anthony
51de741f7b Update handling of quoteStart to prevent sanitization bypass using non-space whitespace. 2021-01-25 21:17:00 +01:00
Tom Anthony
49a25b4d85 Merge pull request #1 from leizongmin/master
Catch up
2021-01-25 20:06:05 +00: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
老雷
be1d80c89d Merge pull request #204 from timgates42/bugfix_typo_double
docs: Fix simple typo, doube -> double
2020-10-27 01:21:07 +08:00
老雷
48a3a323b6 Merge pull request #202 from swseverance/fix-documentation
Fix Documentation Example
2020-09-16 18:58:31 +08: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
Sam Severance
1691814807 Fix Documentation Example 2020-08-03 09:06:31 -04:00
老雷
fa53e3929b Update CHANGELOG.md 2020-07-27 10:28:36 +08:00
Zongmin Lei
39f6fce862 chore: update bower.json 2020-07-27 10:25:25 +08:00
Zongmin Lei
ccff2e55c2 publish: v1.0.8 2020-07-27 10:21:57 +08:00
Zongmin Lei
b12fb387a6 test: add more test for parseAttr 2020-07-27 10:10:40 +08:00
老雷
353ffdc73a Merge pull request #201 from TomAnthony/fix-bypass-issue
Update handling of quoteStart to prevent sanitization bypass
2020-07-24 19:13:00 +08:00
Tom Anthony
379d181273 Make coding style project consistent. 2020-07-24 10:41:06 +01:00
Zongmin Lei
10d0099728 chore: remove node_js version 6.0 on .travis.yml 2020-07-23 17:33:11 +08:00
Zongmin Lei
5f2bacf590 chore: remove node_js version 4.0 & 5.0 on .travis.yml 2020-07-23 17:28:05 +08:00
老雷
ad66b19834 Merge pull request #200 from danvk/typescript-default-import
Allow default imports in TS
2020-07-23 17:24:14 +08:00