Closed thestick613 closed 6 years ago
That has nothing to do with html5-parser. html5-parser simply creates the tree, how it is serialized back to a string is not in its control. Note that lxml.etree.tostring bydefault produces XML output not HTML.
My bad, should have used lxml.html.tostring(tree)
. I'm migrating from beautifulsoup, so things look a bit strange.
This isn't right. Now my browser thinks that the rest of the html is part of the title.