From 2704e91a3d400101fe51719320ad2e14ab05ef69 Mon Sep 17 00:00:00 2001 From: pictuga Date: Thu, 19 Mar 2020 10:24:09 +0100 Subject: [PATCH] readabilite: handle another weird html stuff --- morss/readabilite.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/morss/readabilite.py b/morss/readabilite.py index 115e4c9..6498a77 100644 --- a/morss/readabilite.py +++ b/morss/readabilite.py @@ -187,7 +187,7 @@ def clean_node(node): return # remove comments - if isinstance(node, lxml.html.HtmlComment): + if isinstance(node, lxml.html.HtmlComment) or isinstance(node, lxml.html.HtmlProcessingInstruction): parent.remove(node) return