pub fn preview(text: &str, max_chars: usize) -> String
Cuts text to at most max_chars characters at a word boundary, adding an ellipsis when cut.
text
max_chars