mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 20:49:20 +03:00
Resolve #900
This commit is contained in:
parent
489ed81c84
commit
722bec1a1a
1 changed files with 5 additions and 1 deletions
|
|
@ -167,6 +167,8 @@ export const
|
|||
.replace(/<\/?(html|head)[^>]*>/gi, '')
|
||||
// Fix Reddit https://github.com/the-djmaze/snappymail/issues/540
|
||||
.replace(/<span class="preview-text"[\s\S]+?<\/span>/, '')
|
||||
// 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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue