/ Published in: JavaScript
Expand |
Embed | Plain Text
function slugify() { text = this; text = text.replace(/[^-a-zA-Z0-9\s+]+/ig, ''); text = text.replace(/\s+/gi, "-"); return text; }
You need to login to post a comment.
function slugify() { text = this; text = text.replace(/[^-a-zA-Z0-9\s+]+/ig, ''); text = text.replace(/\s+/gi, "-"); return text; }
You need to login to post a comment.