MCPcopy Index your code
hub / github.com/Python-Markdown/markdown / get_name

Function get_name

markdown/extensions/toc.py:69–78  ·  view source on GitHub ↗

Get title name.

(el: etree.Element)

Source from the content-addressed store, hash-verified

67
68@deprecated('Use `render_inner_html` and `striptags` instead.')
69def get_name(el: etree.Element) -> str:
70 """Get title name."""
71
72 text = []
73 for c in el.itertext():
74 if isinstance(c, AtomicString):
75 text.append(html.unescape(c))
76 else:
77 text.append(c)
78 return ''.join(text).strip()
79
80
81@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

Used in the wild real call sites across dependent graphs

searching dependent graphs…