Converts a string to a slug.
Parameters:
Name | Type | Description |
---|---|---|
text | string | The text to slugify. |
- Since
- 1.1.17
- Source
Returns:
Returns the slugified string.
- Type:
- string
Example
import { slugify } from "@gravityforms/utils";
function Example() {
const str = 'my Mixed *** #string';
const slug = slugify( str );
}