Get title name.
(el: etree.Element)
| 67 | |
| 68 | @deprecated('Use `render_inner_html` and `striptags` instead.') |
| 69 | def 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.') |
nothing calls this directly
no test coverage detected
searching dependent graphs…