(html_path)
| 204 | |
| 205 | |
| 206 | def extract_text(html_path): |
| 207 | parser = TextExtractor() |
| 208 | with open(html_path, "r", encoding="utf-8") as fh: |
| 209 | parser.feed(fh.read()) |
| 210 | return normalize_whitespace(parser.text()) |
| 211 | |
| 212 | |
| 213 | CHUNK_BYTES = 40_000 |
no test coverage detected