* Jakub Wilk <[email protected]>, 2021-09-03, 17:35:
After upgrading libxml2 to 2.9.12+dfsg-3, the tostring() function
started returning strings with some trailing junk:
>>> import lxml.etree
>>> html = lxml.etree.fromstring('<html><p>P</p></html>')
>>> lxml.etree.tostring(html[0])
b'<p>P</p></html>'
This is no longer reproducible with libxml2 2.9.12+dfsg-5, presumably
because this commit was cherry-picked:
https://gitlab.gnome.org/GNOME/libxml2/-/commit/85b1792e37b131e7
("Work around lxml API abuse")
--
Jakub Wilk