From 61a16e2e72c04345a04b49f5543f5f56fd154650 Mon Sep 17 00:00:00 2001 From: the-djmaze <3752035+the-djmaze@users.noreply.github.com> Date: Sun, 1 Nov 2026 22:51:40 +0100 Subject: [PATCH] Remove unused old solution of #1641 --- dev/Common/Html.js | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/dev/Common/Html.js b/dev/Common/Html.js index d495a8c31..af068489b 100644 --- a/dev/Common/Html.js +++ b/dev/Common/Html.js @@ -312,6 +312,8 @@ export const // https://github.com/the-djmaze/snappymail/issues/1860 .replace(/<(\/?)x-html(\s[^>]*)?>/gi, '') .replace(/<(\/?)head(\s[^>]*)?>/gi, '') +// .replace(/]*)?>/i, '
') +// .replace(/<\/?body(\s[^>]*)?>.*?$/gi, '<$1article$2>') .replace(/]*)?>/i, '
') .replace(/<(\/?)body(\s[^>]*)?>/gi, '<$1div$2>') // .replace(/<\/?(html|head)[^>]*>/gi, '') @@ -361,18 +363,6 @@ export const }); */ - // https://github.com/the-djmaze/snappymail/issues/1641 - let body = tmpl.content.querySelector('.mail-body'); - [...tmpl.content.querySelectorAll('.mail-body + .mail-body')] - .forEach(oElement => body.append(...oElement.childNodes)); -/* - .forEach(oElement => { - let bq = createElement('blockquote'); - bq.append(...oElement.childNodes); - body.replaceWith(bq); - }); -*/ - [...tmpl.content.querySelectorAll('*')].forEach(oElement => { const name = oElement.tagName, oStyle = oElement.style;