mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-09-20 07:35:55 +08:00
Resolve #900
This commit is contained in:
parent
489ed81c84
commit
722bec1a1a
|
@ -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…
Reference in a new issue