pub fn truncate_text(text: &str, max_graphemes: usize) -> String
Truncate text to max_graphemes graphemes. Using graphemes to avoid accidentally truncating in the middle of a multi-codepoint character.
text
max_graphemes