MCPcopy Create free account
hub / github.com/THUDM/AutoWebGLM / get_text

Method get_text

miniwob++/html_tools/html_parser.py:159–160  ·  view source on GitHub ↗
(str: str)

Source from the content-addressed store, hash-verified

157
158 def parse(self, root: html.HtmlElement, keep: list[str], obs: list[str], parent_chain: bool=False, get_new_label: bool=False) -> dict[str]:
159 def get_text(str: str) -> str:
160 return '' if str is None else str.strip()[:500]
161
162 def check_attr(attr: str, node: html.HtmlElement) -> bool:
163 tag = node.tag

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected