add support for embed, media elements
This commit is contained in:
@@ -9,5 +9,6 @@ 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,
|
||||
ADD_TAGS: [ 'embed', 'object', 'video', 'audio', 'iframe' ],
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user