pub fn clean_text(text: &str) -> StringExpand 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.