feat: add sanitize-html for content filtering

Enhance RSS feed content safety by integrating sanitize-html to allow specific media tags and attributes, ensuring a secure and controlled presentation of content.
This commit is contained in:
ccbikai
2024-08-07 21:00:55 +08:00
parent 877279ac03
commit 4fa62bf68d
3 changed files with 45 additions and 5 deletions

View File

@@ -22,7 +22,8 @@
"cheerio": "1.0.0-rc.12",
"dayjs": "^1.11.12",
"lru-cache": "^11.0.0",
"ofetch": "^1.3.4"
"ofetch": "^1.3.4",
"sanitize-html": "^2.13.0"
},
"devDependencies": {
"@antfu/eslint-config": "^2.24.1",