MCPcopy Index your code
hub / github.com/ronreiter/interactive-tutorials / write_html

Function write_html

markdown/html4.py:180–195  ·  view source on GitHub ↗
(root, f,
          # keyword arguments
          encoding="us-ascii",
          default_namespace=None)

Source from the content-addressed store, hash-verified

178 write(_escape_cdata(elem.tail, encoding))
179
180def write_html(root, f,
181 # keyword arguments
182 encoding="us-ascii",
183 default_namespace=None):
184 assert root is not None
185 if not hasattr(f, "write"):
186 f = open(f, "wb")
187 write = f.write
188 if not encoding:
189 encoding = "us-ascii"
190 qnames, namespaces = _namespaces(
191 root, encoding, default_namespace
192 )
193 _serialize_html(
194 write, root, encoding, qnames, namespaces
195 )
196
197# --------------------------------------------------------------------
198# serialization support

Callers 1

to_html_stringFunction · 0.85

Calls 2

_namespacesFunction · 0.85
_serialize_htmlFunction · 0.85

Tested by

no test coverage detected