pub fn slugify(title: &str) -> StringExpand description
Generate a URL-friendly slug from a recipe title.
Lowercases, replaces non-alphanumeric characters with hyphens, collapses consecutive hyphens, and trims leading/trailing hyphens.
§Examples
assert_eq!(slugify("Classic Chicken Adobo"), "classic-chicken-adobo");
assert_eq!(slugify("Crème Brûlée"), "crme-brle");
assert_eq!(slugify("Mapo Tofu (四川麻婆豆腐)"), "mapo-tofu");