diff --git a/src/components/PageRenderer.tsx b/src/components/PageRenderer.tsx index df94cde..2e01374 100644 --- a/src/components/PageRenderer.tsx +++ b/src/components/PageRenderer.tsx @@ -19,7 +19,9 @@ const getSanitizer = (): SanizerFn => { // TODO: fix server side html sanitization return (x) => x } else { - return DOMPurify.sanitize + return (dirty) => DOMPurify.sanitize(dirty, { + ADD_TAGS: ['iframe'], + }) } }