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