We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0616ea6 commit c1fe5a8Copy full SHA for c1fe5a8
1 file changed
resources/js/utils/sanitize.ts
@@ -3,10 +3,11 @@ import DOMPurify from 'dompurify';
3
export function sanitize(html: string | null) {
4
return html
5
? DOMPurify.sanitize(html, {
6
+ ADD_TAGS: ['iframe'],
7
CUSTOM_ELEMENT_HANDLING: {
8
tagNameCheck: () => true,
9
attributeNameCheck: () => true,
- }
10
+ },
11
})
12
: html;
13
}
0 commit comments