Solution for #540 ?

This commit is contained in:
the-djmaze 2022-10-02 19:39:24 +02:00
parent 73ddc6c4b9
commit 8980fc9cb1

View file

@ -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 = '';