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

Function get_name

markdown/extensions/toc.py:91–100  ·  view source on GitHub ↗

Get title name.

(el: etree.Element)

Source from the content-addressed store, hash-verified

89
90@deprecated('Use `render_inner_html` and `striptags` instead.')
91def get_name(el: etree.Element) -> str:
92 """Get title name."""
93
94 text = []
95 for c in el.itertext():
96 if isinstance(c, AtomicString):
97 text.append(html.unescape(c))
98 else:
99 text.append(c)
100 return ''.join(text).strip()
101
102
103@deprecated('Use `run_postprocessors`, `render_inner_html` and/or `striptags` instead.')

Callers

nothing calls this directly

Calls 1

unescapeMethod · 0.45

Tested by

no test coverage detected