mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-29 03:59:21 +03:00
Drop support for noembed and noframes
Also remove everything after `<` inside `<style>`
This commit is contained in:
parent
6b03820338
commit
85ac404722
1 changed files with 4 additions and 3 deletions
|
|
@ -32,7 +32,7 @@ const
|
|||
'span','strong','sub','sup','time','u','var',
|
||||
// Deprecated by HTML Standard
|
||||
'acronym','big','center','dir','font','marquee',
|
||||
'nobr','noembed','noframes','plaintext','rb','rtc','strike','tt',
|
||||
'nobr','plaintext','rb','rtc','strike','tt',
|
||||
// Media Elements
|
||||
'img',//'picture','source',
|
||||
// Table Elements
|
||||
|
|
@ -169,8 +169,9 @@ const
|
|||
// strip comments
|
||||
.replace(/\/\*[\s\S]*?\*\//gi, '')
|
||||
// strip MS Word comments
|
||||
.replace(/<!--[\s\S]*?-->/gi, '');
|
||||
// strip HTML
|
||||
.replace(/<!--[\s\S]*?-->/gi, '')
|
||||
// strip HTML, as < is no CSS combinator anyway
|
||||
.replace(/<[\s\S]*/gi, '');
|
||||
// .replace(/<\/?[a-z][\s\S]*?>/gi, '');
|
||||
|
||||
// unified regex to match css & media queries together
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue