fn truncate_content(content: &str, max_len: usize) -> String
Truncates content to a maximum length, breaking at word boundaries.