List of utility methods to do String Strip
strip_html()String.prototype.strip_html = function() { var value = ""; try { value = $('<p>' + this + '</p>').text(); if (value == "") { value = this; } catch(err) { value = this; ... | |
stripslashes()String.prototype.stripslashes = function () { return (this + '').replace(/\\(.?)/g, function (s,n1) { switch (n1) { case '\\': return '\\'; case '0': return '\u0000'; case '': return ''; ... | |
stripstrip()String.prototype.strip = function strip() { return this.replace(/^\s+/, '').replace(/\s+$/, ''); }; |