[][src]Function str_slug::slug

pub fn slug<T: AsRef<str>>(value: T) -> String

Generate URL friendly slug of the given string.

Examples

use str_slug::slug;

let slug = slug("Hello, World ;-)");
assert_eq!("hello-world", slug);