Converts a string to a slug.

Parameters:
NameTypeDescription
textstring

The text to slugify.

Since
  • 1.1.17
Returns:

Returns the slugified string.

Type: 
string
Example
import { slugify } from "@gravityforms/utils";

function Example() {
  const str = 'my Mixed *** #string';
	 const slug = slugify( str );
}