Skip to main content

truncate_content

Function truncate_content 

Source
pub fn truncate_content(content: &str, max_len: usize) -> String
Expand description

Truncate content to a maximum length, respecting char boundaries.