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

Method handle

crawl4ai/html2text/__init__.py:153–161  ·  view source on GitHub ↗
(self, data: str)

Source from the content-addressed store, hash-verified

151 super().feed(data)
152
153 def handle(self, data: str) -> str:
154 self.start = True
155 self.feed(data)
156 self.feed("")
157 markdown = self.optwrap(self.finish())
158 if self.pad_tables:
159 return pad_tables_in_text(markdown)
160 else:
161 return markdown
162
163 def outtextf(self, s: str) -> None:
164 self.outtextlist.append(s)

Callers 5

mainFunction · 0.95
html2textFunction · 0.95
get_content_of_websiteFunction · 0.80

Calls 4

feedMethod · 0.95
optwrapMethod · 0.95
finishMethod · 0.95
pad_tables_in_textFunction · 0.85

Tested by

no test coverage detected