MCPcopy
hub / github.com/unclecode/crawl4ai / html2text

Function html2text

crawl4ai/html2text/__init__.py:1010–1015  ·  view source on GitHub ↗
(html: str, baseurl: str = "", bodywidth: Optional[int] = None)

Source from the content-addressed store, hash-verified

1008
1009
1010def html2text(html: str, baseurl: str = "", bodywidth: Optional[int] = None) -> str:
1011 if bodywidth is None:
1012 bodywidth = config.BODY_WIDTH
1013 h = HTML2Text(baseurl=baseurl, bodywidth=bodywidth)
1014
1015 return h.handle(html)

Callers

nothing calls this directly

Calls 2

handleMethod · 0.95
HTML2TextClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…