Fix for platforms with no lxml and poor html.parser