Skip to content

Commit

Permalink
Drop support for noembed and noframes
Browse files Browse the repository at this point in the history
Also remove everything after `<` inside `<style>`
  • Loading branch information
the-djmaze committed Sep 24, 2024
1 parent 6b03820 commit 85ac404
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions dev/Common/Html.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 85ac404

Please sign in to comment.