Skip to content

Commit

Permalink
html block: don't override entire ALLOWED_TAGS list
Browse files Browse the repository at this point in the history
  • Loading branch information
Wattenberger committed Dec 6, 2021
1 parent 39e66de commit 26e4b42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/blocks/file-blocks/html.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default function (props: FileBlockProps) {
const { content } = props;

const sanitizedContent = useMemo(() => (
DOMPurify.sanitize(content, { ALLOWED_TAGS: ["iframe"], ADD_ATTR: ['allow', 'allowfullscreen', 'mozallowfullscreen', 'webkitallowfullscreen', 'frameborder', 'scrolling', 'width', 'height'] })
DOMPurify.sanitize(content, { ADD_TAGS: ["iframe"], ADD_ATTR: ['allow', 'allowfullscreen', 'mozallowfullscreen', 'webkitallowfullscreen', 'frameborder', 'scrolling', 'width', 'height'] })
), [content])

return (
Expand Down

0 comments on commit 26e4b42

Please sign in to comment.