Fix TypeError

This commit is contained in:
ADecametre
2025-01-30 09:14:44 -05:00
parent 8ad5458e2a
commit 817ec96963

View File

@ -61,7 +61,7 @@ export const sanitize = (html: string, options?: sanitizeHtml.IOptions) => {
return sanitizeHtml(html, {
...options,
allowedTags: [
...options?.allowedTags,
...(options?.allowedTags ?? []),
// default tags (https://www.npmjs.com/package/sanitize-html#default-options)
"address", "article", "aside", "footer", "header", "h1", "h2", "h3", "h4",
"h5", "h6", "hgroup", "main", "nav", "section", "blockquote", "dd", "div",