content = selector.xpath("//div[@class='entry-content clearfix']")[0]
content = tostring(content, encoding="utf-8", pretty_print=True, method="html").decode("utf-8")
content = content.replace("<", "lt;")
content = content.replace(">", "gt;")
content = content.replace(""", "quot;")
content = content.replace("&", "amp;")
content = content.replace(" ", "nbsp;")
print(content)