Function
html2text
(html: str, baseurl: str = "", bodywidth: Optional[int] = None)
Source from the content-addressed store, hash-verified
| 1008 | |
| 1009 | |
| 1010 | def 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
Tested by
no test coverage detected
Used in the wild real call sites across dependent graphs
searching dependent graphs…