slugify()

 
Use this function to create friendly (human-readable) URLs. It takes characters that are forbidden in URIs and either converts them to a valid ASCII character or remove them completely. It adds a hyphen (-) in place of all space characters. For example, the product "Dodger Blue Baseball Hat!" becomes "Dodger-Blue-Baseball-Hat" which is now URI friendly.
Syntax
slugify( data )
A URL friendly string.
User Annotations: slugify