Serialize element and its children to a string of XHTML.
(element: Element)
| 235 | |
| 236 | |
| 237 | def to_xhtml_string(element: Element) -> str: |
| 238 | """ Serialize element and its children to a string of XHTML. """ |
| 239 | return _write_html(ElementTree(element).getroot(), format="xhtml") |