|
32 | 32 | 'span','strong','sub','sup','time','u','var',
|
33 | 33 | // Deprecated by HTML Standard
|
34 | 34 | 'acronym','big','center','dir','font','marquee',
|
35 |
| - 'nobr','noembed','noframes','plaintext','rb','rtc','strike','tt', |
| 35 | + 'nobr','plaintext','rb','rtc','strike','tt', |
36 | 36 | // Media Elements
|
37 | 37 | 'img',//'picture','source',
|
38 | 38 | // Table Elements
|
@@ -169,8 +169,9 @@ const
|
169 | 169 | // strip comments
|
170 | 170 | .replace(/\/\*[\s\S]*?\*\//gi, '')
|
171 | 171 | // strip MS Word comments
|
172 |
| - .replace(/<!--[\s\S]*?-->/gi, ''); |
173 |
| - // strip HTML |
| 172 | + .replace(/<!--[\s\S]*?-->/gi, '') |
| 173 | + // strip HTML, as < is no CSS combinator anyway |
| 174 | + .replace(/<[\s\S]*/gi, ''); |
174 | 175 | // .replace(/<\/?[a-z][\s\S]*?>/gi, '');
|
175 | 176 |
|
176 | 177 | // unified regex to match css & media queries together
|
|
0 commit comments