Slugify
Method Signature
Slugify(string=[string], maxLength=[integer], allow=[string])Arguments
Argument
Type
Required
Description
Default
Examples
Related
Last updated
Was this helpful?
Slugify a string for URL safety
Slugify(string=[string], maxLength=[integer], allow=[string])string
string
true
The target string
maxLength
integer
false
The maximum number of chracters to allow, 0 is all
0
allow
string
false
A regex safe list of additional characters to allow. The default is [^a-z0-9]
Last updated
Was this helpful?
Was this helpful?
