MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / extract_text

Function extract_text

scripts/developer-guide/run_languagetool.py:206–210  ·  view source on GitHub ↗
(html_path)

Source from the content-addressed store, hash-verified

204
205
206def 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
213CHUNK_BYTES = 40_000

Callers 1

mainFunction · 0.85

Calls 4

textMethod · 0.95
TextExtractorClass · 0.85
normalize_whitespaceFunction · 0.85
readMethod · 0.65

Tested by

no test coverage detected