Skip to content

Instantly share code, notes, and snippets.

@jesobreira
jesobreira / makeslug.js
Last active July 14, 2020 13:09
Create slugs with accented chars in PHP and Javascript
/*
* Javascript makeslug()
* by J. Santos <jefrey[at]jefrey[dot]ml>
*/
/*
Usage:
string makeslug( string val [, string replaceBy = "-" ] )
Example: