Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
smrtrfszm committed Dec 27, 2023
1 parent 6ffc907 commit a7a37b8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/components/PageRenderer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@ const getSanitizer = (): SanizerFn => {
// TODO: fix server side html sanitization
return (x) => x
} else {
return (dirty) => DOMPurify.sanitize(dirty, {
ADD_TAGS: ['iframe'],
})
return (dirty) =>
DOMPurify.sanitize(dirty, {
ADD_TAGS: ['iframe'],
})
}
}

Expand Down

0 comments on commit a7a37b8

Please sign in to comment.