From 722bec1a1adceaad2f8f92f18d4c37c00de74606 Mon Sep 17 00:00:00 2001 From: the-djmaze <> Date: Thu, 2 Feb 2023 22:06:43 +0100 Subject: [PATCH] Resolve #900 --- dev/Common/Html.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dev/Common/Html.js b/dev/Common/Html.js index 084d9950f..196ffae3b 100644 --- a/dev/Common/Html.js +++ b/dev/Common/Html.js @@ -167,6 +167,8 @@ export const .replace(/<\/?(html|head)[^>]*>/gi, '') // Fix Reddit https://github.com/the-djmaze/snappymail/issues/540 .replace(//, '') + // https://github.com/the-djmaze/snappymail/issues/900 + .replace(/\u2028/g,' ') .trim(); html = ''; @@ -543,7 +545,9 @@ export const plainToHtml = plain => { plain = plain.toString() .replace(/\r/g, '') - .replace(/^>[> ]>+/gm, ([match]) => (match ? match.replace(/[ ]+/g, '') : match)); + .replace(/^>[> ]>+/gm, ([match]) => (match ? match.replace(/[ ]+/g, '') : match)) + // https://github.com/the-djmaze/snappymail/issues/900 + .replace(/\u2028/g,' '); let bIn = false, bDo = true,