Skip to main content

slugify

Function slugify 

Source
pub fn slugify(title: &str) -> String
Expand description

Turn a title into a slug: lowercase ASCII alphanumerics, everything else collapsed to a single -, with no leading, trailing, or repeated dash.