(lxml) XPath matching against nodes with unprintable characters
Tags:
def clean_empty_tags(node):
"""
Finds all tags with a whitespace in it. They come out broke and
we won't need them anyways.
"""
for empty in node.xpath("//p[.='\xa0']"):
empty.getparent().remove(empty)