Skip to main content

slugify

Function slugify 

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

Convert text to a URL-safe slug.

Lowercases the text, replaces whitespace and special characters with hyphens, and collapses consecutive hyphens.