Converts a string into a URL-friendly slug. Strips all special characters, replaces spaces with hyphens, and converts everything to lowercase.
The original string to transform.
The formatted, URL-safe slug string.
slugify("Hello World! Welcome to 2026") // "hello-world-welcome-to-2026" Copy
slugify("Hello World! Welcome to 2026") // "hello-world-welcome-to-2026"
Converts a string into a URL-friendly slug. Strips all special characters, replaces spaces with hyphens, and converts everything to lowercase.