Converts a string into a URL-friendly "slug".
The input string to convert.
The slugified version of the string, lowercase with words separated by hyphens and special characters removed.
1.1.0
slugify("Hello World!"); // "hello-world"slugify(" Some_text_here "); // "some-text-here"slugify("Café & Restaurant"); // "café-restaurant" Copy
slugify("Hello World!"); // "hello-world"slugify(" Some_text_here "); // "some-text-here"slugify("Café & Restaurant"); // "café-restaurant"
Converts a string into a URL-friendly "slug".