This commit is contained in:
ADecametre
2025-01-27 19:23:28 -05:00
parent e795ec64d6
commit 809551d0f8
2 changed files with 3 additions and 1 deletions

View File

@ -63,6 +63,8 @@ export const sanitize = (html: string, options?: sanitizeHtml.IOptions) => {
allowedAttributes: {
...options?.allowedAttributes,
"*": ["class", "style"],
"a": ["href", "target"],
"img": ["src", "alt"],
},
allowedStyles: {
...options?.allowedStyles,