This commit is contained in:
Benjamin Toby
2025-01-10 20:35:05 +01:00
parent 9192dae0b5
commit a3561da53d
286 changed files with 13862 additions and 42590 deletions
@@ -0,0 +1,9 @@
declare const sanitizeHtmlOptions: {
allowedTags: string[];
allowedAttributes: {
a: string[];
img: string[];
"*": string[];
};
};
export default sanitizeHtmlOptions;
@@ -0,0 +1,35 @@
"use strict";
// @ts-check
Object.defineProperty(exports, "__esModule", { value: true });
const sanitizeHtmlOptions = {
allowedTags: [
"b",
"i",
"em",
"strong",
"a",
"p",
"span",
"ul",
"ol",
"li",
"h1",
"h2",
"h3",
"h4",
"h5",
"h6",
"img",
"div",
"button",
"pre",
"code",
"br",
],
allowedAttributes: {
a: ["href"],
img: ["src", "alt", "width", "height", "class", "style"],
"*": ["style", "class"],
},
};
exports.default = sanitizeHtmlOptions;