generate_slug

Function generate_slug 

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

Generate URL-friendly slug from a string. Converts to lowercase, replaces spaces/special chars with hyphens, removes consecutive hyphens.