Some existing workarounds can be found at Formula to replace special characters - slug creation
But they’re highly unfriendly, and don’t actually cover a proper “slug” use-case.
Is it possible to have official functions for this?
For instance:
- KEBABCASE - Replaces all special chars by
-
.
See https://lodash.com/docs/4.17.15#kebabCase for implementation details
- SLUG - Similar to KEBABCASE but also converts non-ascii characters (accents become non-accent)
This is really, really needed for urls generated by content. Like article’s title and such.
List of all existing functions: