Javascript String jsEscape()

Description

Javascript String jsEscape()

String.prototype.jsEscape = function() {
 return this.replace(/'/g, '\\\'').replace(/"/g, '\\"');
};



PreviousNext

Related