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

Method get_text

webarena/browser_env/html_tools/html_parser.py:164–165  ·  view source on GitHub ↗
(str: str)

Source from the content-addressed store, hash-verified

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

Callers 1

mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected