Javascript String formatForUrl()

Description

Javascript String formatForUrl()


String.prototype.formatForUrl = function () {
 return this.replace(/ /g, "-").replace(/[^a-z0-9\-]/gi, "").toLowerCase();
};



PreviousNext

Related