diff --git a/components/email/EmailPreview.tsx b/components/email/EmailPreview.tsx index 4db3c614..bf4d8c0e 100644 --- a/components/email/EmailPreview.tsx +++ b/components/email/EmailPreview.tsx @@ -119,8 +119,8 @@ export default function EmailPreview({ email, loading = false, onReply }: EmailP const sender = email.from && email.from.length > 0 ? email.from[0] : undefined; - // Use the same sanitization approach as in ComposeEmail - const sanitizedContent = sanitizeHtml(email.content || email.html || email.text || ''); + // Use sanitizeHtml directly, matching ComposeEmail exactly + const emailContent = sanitizeHtml(email.content || email.html || email.text || ''); return ( @@ -199,31 +199,20 @@ export default function EmailPreview({ email, loading = false, onReply }: EmailP )} - {/* Email content - updated to match ComposeEmail */} + {/* Email content - EXACT match with ComposeEmail */} -
- {email.content ? ( -
-
-
- ) : ( -

No content available

- )} +
+ {/* Message content - copied exactly from ComposeEmail for reply/forward */} +
+
+