mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-11-10 17:13:38 +08:00
Solution for #540 ?
This commit is contained in:
parent
73ddc6c4b9
commit
8980fc9cb1
1 changed files with 2 additions and 0 deletions
|
@ -117,6 +117,8 @@ export const
|
|||
// Not supported by <template> element
|
||||
.replace(/<(\/?)body(\s[^>]*)?>/gi, '<$1div class="mail-body"$2>')
|
||||
.replace(/<\/?(html|head)[^>]*>/gi, '')
|
||||
// Fix Reddit https://github.com/the-djmaze/snappymail/issues/540
|
||||
.replace(/<span class="preview-text"[\s\S]+?<\/span>/, '')
|
||||
.trim();
|
||||
html = '';
|
||||
|
||||
|
|
Loading…
Reference in a new issue