MCPcopy Create free account
hub / github.com/Dizzy-K/AutoPT / _HTMLTextParser

Class _HTMLTextParser

tools/terminal.py:92–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90
91
92class _HTMLTextParser(HTMLParser):
93 def __init__(self) -> None:
94 super().__init__()
95 self._parts: list[str] = []
96
97 def handle_data(self, data: str) -> None:
98 text = data.strip()
99 if text:
100 self._parts.append(text)
101
102 def get_text(self) -> str:
103 return "\n".join(self._parts)
104
105
106class InteractiveShell:

Callers 1

_compress_html_outputMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected