This commit is contained in:
Benjamin Toby
2025-05-12 10:47:47 +01:00
parent 07c2186b98
commit 674af34355
9 changed files with 268 additions and 231 deletions
@@ -1,5 +1,3 @@
// @ts-check
const sanitizeHtmlOptions = {
allowedTags: [
"b",
@@ -26,9 +24,9 @@ const sanitizeHtmlOptions = {
"br",
],
allowedAttributes: {
a: ["href"],
a: ["href", "title", "class", "style"],
img: ["src", "alt", "width", "height", "class", "style"],
"*": ["style", "class"],
"*": ["style", "class", "title"],
},
};