Skip to main content

clean_text

Function clean_text 

Source
pub fn clean_text(text: &str) -> String
Expand description

External text must never introduce terminal escape sequences or new lines.

The length limit counts scalar values but never cuts through a grapheme cluster, so a joiner or combining mark is not left dangling at the end.