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

Function clean_text

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

Source from the content-addressed store, hash-verified

89 return ''.join(character for character in text if ord(character) < 128)
90
91def clean_text(text: str) -> str:
92 text = remove_html_tags(text)
93 text = normalize_whitespace(text)
94 text = remove_non_ascii(text)
95 return text
96
97
98def extract_thumbnail(soup: BeautifulSoup) -> str:

Callers

nothing calls this directly

Calls 3

remove_html_tagsFunction · 0.85
normalize_whitespaceFunction · 0.85
remove_non_asciiFunction · 0.85

Tested by

no test coverage detected