readabilite: handle another weird html stuff
parent
f48961a7e4
commit
2704e91a3d
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue