slugify
Converts a string to a slug-friendly format by:
- Trimming leading and trailing spaces
- Converting to lowercase
- Removing single and double quotes
- Replacing any character not a-z, 0-9, or hyphen with a hyphen
- Collapsing multiple hyphens into one
- Removing leading and trailing hyphens
Parameters
Returns
Slugified string, or original value if not a string
Function defined in common/src/utils/slugify.ts:12