DEV: Update xss.js package (#16398)

This commit is contained in:
Jarek Radosz
2022-04-06 22:49:13 +02:00
committed by GitHub
parent 06d4445ab0
commit 77fed8dfc3
5 changed files with 12 additions and 4 deletions

View File

@@ -76,7 +76,7 @@ export function sanitize(text, allowLister) {
}
let result = xss(text, {
whiteList: allowList.tagList,
allowList: allowList.tagList,
stripIgnoreTag: true,
stripIgnoreTagBody: ["script", "table"],

View File

@@ -35,7 +35,7 @@ function findUploadsInHtml(uploads, blockToken) {
let foundImage = false;
const newContent = xss(blockToken.content, {
whiteList: fakeAllowList,
allowList: fakeAllowList,
allowCommentTag: true,
onTag(tag, html, options) {
// We're not using this for sanitizing, so allow all tags through

View File

@@ -18,7 +18,7 @@
"ember-auto-import": "^2.2.4",
"ember-cli-babel": "^7.13.0",
"ember-cli-htmlbars": "^4.2.0",
"xss": "^1.0.8",
"xss": "^1.0.11",
"webpack": "^5.67.0"
},
"devDependencies": {