MCPcopy Index your code
hub / github.com/RustPython/RustPython / get_html_title

Function get_html_title

Lib/test/test_pydoc/test_pydoc.py:362–367  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

360 return output.strip(), loc
361
362def get_html_title(text):
363 # Bit of hack, but good enough for test purposes
364 header, _, _ = text.partition("</head>")
365 _, _, title = header.partition("<title>")
366 title, _, _ = title.partition("</title>")
367 return title
368
369
370def html2text(html):

Callers 1

call_url_handlerMethod · 0.85

Calls 1

partitionMethod · 0.45

Tested by

no test coverage detected