mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-07 00:17:03 +03: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
|
// Not supported by <template> element
|
||||||
.replace(/<(\/?)body(\s[^>]*)?>/gi, '<$1div class="mail-body"$2>')
|
.replace(/<(\/?)body(\s[^>]*)?>/gi, '<$1div class="mail-body"$2>')
|
||||||
.replace(/<\/?(html|head)[^>]*>/gi, '')
|
.replace(/<\/?(html|head)[^>]*>/gi, '')
|
||||||
|
// Fix Reddit https://github.com/the-djmaze/snappymail/issues/540
|
||||||
|
.replace(/<span class="preview-text"[\s\S]+?<\/span>/, '')
|
||||||
.trim();
|
.trim();
|
||||||
html = '';
|
html = '';
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue