courrier preview

This commit is contained in:
alma 2025-05-01 10:07:47 +02:00
parent 0a13a74b8b
commit c4994ad175

View File

@ -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