From 48769f0aca53c2d17324c3420959231f1b0779a4 Mon Sep 17 00:00:00 2001 From: djmaze Date: Wed, 28 Oct 2020 14:54:55 +0100 Subject: [PATCH] Resolve issue https://github.com/the-djmaze/snappymail/issues/27 --- dev/Common/UtilsUser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev/Common/UtilsUser.js b/dev/Common/UtilsUser.js index 613b82ef9..7e5fb9011 100644 --- a/dev/Common/UtilsUser.js +++ b/dev/Common/UtilsUser.js @@ -128,7 +128,7 @@ export function htmlToPlain(html) { .replace(/"/gi, '"') .replace(/<[^>]*>/gm, ''); - text = splitPlainText(tpl.innerText + text = splitPlainText(tpl.content.textContent .replace(/\n[ \t]+/gm, '\n') .replace(/[\n]{3,}/gm, '\n\n') .replace(/>/gi, '>')