Skip to content

Commit

Permalink
fix(text): add iframe to whitelist (#352)
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasSevagen authored and alicedraillard committed Dec 5, 2024
1 parent fd0fc3d commit 2b6e4e4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ declare module "dompurify" {

export const CardContentText: FC<CardContentTextProps> = ({ text }) => {
const cleanHtml = DOMPurify.sanitize(text, {
ADD_TAGS: ["style"],
ADD_TAGS: ["style", "iframe"],
ADD_ATTR: ["style"],
ALLOWED_STYLES: [
"color",
Expand Down

0 comments on commit 2b6e4e4

Please sign in to comment.