(text)
| 360 | return output.strip(), loc |
| 361 | |
| 362 | def 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 | |
| 370 | def html2text(html): |
no test coverage detected