Slugify

Slugify a string for URL safety

Method Signature

Slugify(string=[string], maxLength=[numeric], allow=[string])

Arguments

ArgumentTypeRequiredDescriptionDefault

string

string

true

The target string

maxLength

numeric

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]

Examples

Last updated

Logo

Copyright & Register Trademark by Ortus Solutions, Corp & Ortus Software, LLC