You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This never did what it claimed, and never actually guaranteed its
output was well-formed XML, and hence provided little of use.
(The only thing it was good at was producing stylized HTML, and this
can be done by manually setting the relevant options without having
a misleadingly named module.)
If you want XHTML, use one of the tree-builders that supports it
natively. These are DOM (with most DOM implementations, inc. the
standard library minidom with its Node.toxml function) and
ElementTree (ElementTree.tostring gives XML). Neither simpletree nor
the deprecated BeautifulSoup tree-builders support this.
If you want polyglot, there is no solution. I (personally) would be
happy to add a polyglot serializer to html5lib if one is written.
0 commit comments