From 15f2a5ed467223c8bb7dd86c652f86a442eb2ce2 Mon Sep 17 00:00:00 2001 From: Thomas Sevagen Date: Mon, 2 Dec 2024 10:12:14 +0100 Subject: [PATCH] fix(text): add iframe to whitelist --- frontend/src/components/card-content-text/cardContentText.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/card-content-text/cardContentText.tsx b/frontend/src/components/card-content-text/cardContentText.tsx index ccb7e9a5..abce9ef3 100644 --- a/frontend/src/components/card-content-text/cardContentText.tsx +++ b/frontend/src/components/card-content-text/cardContentText.tsx @@ -15,7 +15,7 @@ declare module "dompurify" { export const CardContentText: FC = ({ text }) => { const cleanHtml = DOMPurify.sanitize(text, { - ADD_TAGS: ["style"], + ADD_TAGS: ["style", "iframe"], ADD_ATTR: ["style"], ALLOWED_STYLES: [ "color",