pub fn truncate_content(content: &str, max_len: usize) -> String
Truncate content to a maximum length, respecting char boundaries.