courrier preview
This commit is contained in:
parent
0a13a74b8b
commit
c4994ad175
@ -41,11 +41,8 @@ DOMPurify.removeAllHooks();
|
|||||||
// IMPORTANT: We do NOT add any hooks that modify direction attributes
|
// IMPORTANT: We do NOT add any hooks that modify direction attributes
|
||||||
// Direction will be handled explicitly by the text-direction.ts utility
|
// Direction will be handled explicitly by the text-direction.ts utility
|
||||||
|
|
||||||
// Configure DOMPurify to preserve direction attributes
|
// NOTE: Global DOMPurify configuration is now centralized in email-utils.ts
|
||||||
DOMPurify.setConfig({
|
// We don't set config here to avoid conflicts
|
||||||
ADD_ATTR: ['dir'],
|
|
||||||
ALLOWED_ATTR: ['style', 'class', 'id', 'dir']
|
|
||||||
});
|
|
||||||
|
|
||||||
// Note: We ensure proper text direction is applied via the applyTextDirection utility
|
// Note: We ensure proper text direction is applied via the applyTextDirection utility
|
||||||
// when rendering email content
|
// when rendering email content
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user