From c4994ad175cb5689d39d06702b5fc730557afdd8 Mon Sep 17 00:00:00 2001 From: alma Date: Thu, 1 May 2025 10:07:47 +0200 Subject: [PATCH] courrier preview --- lib/utils/email-formatter.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lib/utils/email-formatter.ts b/lib/utils/email-formatter.ts index 0eb9bd8a..1facab10 100644 --- a/lib/utils/email-formatter.ts +++ b/lib/utils/email-formatter.ts @@ -41,11 +41,8 @@ DOMPurify.removeAllHooks(); // IMPORTANT: We do NOT add any hooks that modify direction attributes // Direction will be handled explicitly by the text-direction.ts utility -// Configure DOMPurify to preserve direction attributes -DOMPurify.setConfig({ - ADD_ATTR: ['dir'], - ALLOWED_ATTR: ['style', 'class', 'id', 'dir'] -}); +// NOTE: Global DOMPurify configuration is now centralized in email-utils.ts +// We don't set config here to avoid conflicts // Note: We ensure proper text direction is applied via the applyTextDirection utility // when rendering email content