Slugify String
Convert any string into a URL-friendly slug.
Slugify String
Convert any string into a URL-friendly slug
What is a slug?
A slug is a URL-friendly version of a string, typically used for creating readable URLs. It converts text to lowercase, removes special characters, and replaces spaces with hyphens.
Examples:
- "Hello World!" → "hello-world"
- "My Blog Post #1" → "my-blog-post-1"
- "Café & Restaurant" → "cafe-and-restaurant"