Skip to main content

slugify

Function slugify 

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

Generate a URL-safe slug from a title.

Lowercases, keeps alphanumeric characters, and collapses every run of other characters (whitespace and punctuation alike) into a single -, with no leading or trailing separator.