This commit is contained in:
2023-05-12 15:07:43 -07:00
parent ae7b491107
commit 0f83a56299
2 changed files with 4 additions and 8 deletions

View File

@@ -9,8 +9,5 @@ export function sanitize_html(html: string, custom_elements?: CustomElementHandl
const dom_purify = createDOMPurify(window as any as Window);
return dom_purify.sanitize(html, {
CUSTOM_ELEMENT_HANDLING: custom_elements,
ALLOWED_TAGS: ['meta'],
ALLOWED_ATTR: ['typeof', 'property', 'content'],
ADD_URI_SAFE_ATTR: ['typeof']
});
}