Skip to main content

slugify

Function slugify 

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

convert a human-readable label into a URL-safe slug.

lowercases all characters, replaces runs of non-alphanumeric characters with a single dash, and strips leading/trailing dashes.