MCPcopy Create free account
hub / github.com/Python-Markdown/markdown / to_xhtml_string

Function to_xhtml_string

markdown/serializers.py:237–239  ·  view source on GitHub ↗

Serialize element and its children to a string of XHTML.

(element: Element)

Source from the content-addressed store, hash-verified

235
236
237def 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")

Calls 1

_write_htmlFunction · 0.85