From 38a507d51ede69d8e95d09ad205ef382d621cac5 Mon Sep 17 00:00:00 2001 From: alma Date: Mon, 21 Apr 2025 14:05:05 +0200 Subject: [PATCH] mail page rest --- app/courrier/page.tsx | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/app/courrier/page.tsx b/app/courrier/page.tsx index 655c359f..b20e4bca 100644 --- a/app/courrier/page.tsx +++ b/app/courrier/page.tsx @@ -532,11 +532,31 @@ function renderEmailContent(email: Email) { )); return ( -
+
{isHtml ? ( -
+
]*>[\s\S]*?<\/style>/gi, '') + .replace(/]*>[\s\S]*?<\/script>/gi, '') + .replace(/]*>/gi, '') + .replace(/]*>/gi, '') + .replace(/]*>/gi, '') + .replace(/]*>[\s\S]*?<\/title>/gi, '') + .replace(/]*>[\s\S]*?<\/head>/gi, '') + .replace(/]*>/gi, '') + .replace(/<\/body>/gi, '') + .replace(/]*>/gi, '') + .replace(/<\/html>/gi, '') + }} + /> ) : ( -
{content}
+
+ {content.split('\n').map((line, i) => ( +

{line}

+ ))} +
)} {attachmentElements}