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

Function to_html_string

markdown/serializers.py:232–234  ·  view source on GitHub ↗

Serialize element and its children to a string of HTML5.

(element: Element)

Source from the content-addressed store, hash-verified

230
231
232def to_html_string(element: Element) -> str:
233 """ Serialize element and its children to a string of HTML5. """
234 return _write_html(ElementTree(element).getroot(), format="html")
235
236
237def to_xhtml_string(element: Element) -> str:

Calls 1

_write_htmlFunction · 0.85