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