Skip to content

Commit

Permalink
Merge pull request #1861 from hungyao/patch-1
Browse files Browse the repository at this point in the history
Update Html.js to remove x-html tags before rendering
  • Loading branch information
the-djmaze authored Dec 10, 2024
2 parents 7eaa065 + e16d0b5 commit 149cf5a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dev/Common/Html.js
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,8 @@ export const
// Not supported by <template> element
// .replace(/<!doctype[^>]*>/gi, '')
// .replace(/<\?xml[^>]*\?>/gi, '')
// https://github.com/the-djmaze/snappymail/issues/1860
.replace(/<(\/?)x-html(\s[^>]*)?>/gi, '')
.replace(/<(\/?)head(\s[^>]*)?>/gi, '')
.replace(/<(\/?)body(\s[^>]*)?>/gi, '<$1div class="mail-body"$2>')
// .replace(/<\/?(html|head)[^>]*>/gi, '')
Expand Down

0 comments on commit 149cf5a

Please sign in to comment.