Ensure quoted string detector does not remove the body element #615

This commit is contained in:
Ben Gotow 2018-02-02 22:58:17 -08:00
parent 7ab5347be9
commit 24746823c8

View file

@ -47,7 +47,7 @@ class QuotedHTMLTransformer {
}
for (const el of quoteStringDetector(doc)) {
if (el) {
if (el && el !== doc.body) {
el.remove();
}
}