feat: Add <strike> to default whitelist

This commit is contained in:
Zongmin Lei
2021-05-06 13:11:03 +08:00
parent dcf1486845
commit 005098be59
4 changed files with 4 additions and 1 deletions

View File

@@ -6,6 +6,7 @@
- [Add `<summary>` to default whitelist #216](https://github.com/leizongmin/js-xss/pull/216) by @spacegaier
- [Add `<figure>` and `<figcaption>` to default whitelist](https://github.com/leizongmin/js-xss/pull/220) by @daraz999
- Add `<audio crossorigin muted>`, `<video crossorigin muted playsinline poster>` to default whitelist
- Add `<strike>` to default whitelist
## v1.0.8 (2020-07-27)

1
dist/xss.js vendored
View File

@@ -74,6 +74,7 @@ function getDefaultWhiteList() {
summary: [],
sup: [],
strong: [],
strike: [],
table: ["width", "border", "align", "valign"],
tbody: ["align", "valign"],
td: ["width", "rowspan", "colspan", "align", "valign"],

2
dist/xss.min.js vendored

File diff suppressed because one or more lines are too long

View File

@@ -73,6 +73,7 @@ function getDefaultWhiteList() {
summary: [],
sup: [],
strong: [],
strike: [],
table: ["width", "border", "align", "valign"],
tbody: ["align", "valign"],
td: ["width", "rowspan", "colspan", "align", "valign"],