From 24746823c8dd809d280e1883f62e65148dc7724c Mon Sep 17 00:00:00 2001 From: Ben Gotow Date: Fri, 2 Feb 2018 22:58:17 -0800 Subject: [PATCH] Ensure quoted string detector does not remove the body element #615 --- app/src/services/quoted-html-transformer.es6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/services/quoted-html-transformer.es6 b/app/src/services/quoted-html-transformer.es6 index b1fbf049d..1b679b387 100644 --- a/app/src/services/quoted-html-transformer.es6 +++ b/app/src/services/quoted-html-transformer.es6 @@ -47,7 +47,7 @@ class QuotedHTMLTransformer { } for (const el of quoteStringDetector(doc)) { - if (el) { + if (el && el !== doc.body) { el.remove(); } }