MCPcopy Create free account
hub / github.com/clockworknowledge/menome_processor / normalize_whitespace

Function normalize_whitespace

app/routers/document.py:75–76  ·  view source on GitHub ↗
(text: str)

Source from the content-addressed store, hash-verified

73 return soup.get_text(' ', strip=True)
74
75def normalize_whitespace(text: str) -> str:
76 return ' '.join(text.split())
77
78def tag_visible(element):
79 if element.parent.name in ['style', 'script', 'head', 'title', 'meta', '[document]']:

Callers 1

clean_textFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected