Here you can find the source of stripTags()
String.prototype.stripTags = function(){ var entity = { quot: '"',// ww w . j a v a2 s . c o m lt: '<', gt: '>', nbsp: ' ' }; return function ( ) { return this.replace(/&([^&;]+);/g, function (a, b) { var r = entity[b]; return typeof r === 'string' ? r : a; } ); }; }( );
String.prototype.stripHtml = function () { return this.replace(/<(?:.|\n)*?>/gm, ''); };
String.prototype.stripHtml = function () { "use strict"; var htmlRegex = /(<([^>]+)>)/ig; return this.replace(htmlRegex, ''); };
? String.prototype.stripHtml = function () { return this.replace(new RegExp(/<[^>]+>/g), ""); };
String.prototype.stripTags = function() return this.replace(/<\/?[^>]+>/gi, ''); };
String.prototype.stripTags = function () { return this.replace(/(<([^>]+)>)/ig, ""); };
String.prototype.stripTags = function() { var div = document.createElement("div"); div.innerHTML = this.br2nl(); return div.textContent || div.innerText || ""; };
String.prototype.stripTags = function() { return this.replace(/(<([^>]+)>)/ig, '');
String.prototype.stripTags = function () { var str = this; var pos1 = str.indexOf('<'); if (pos1 == -1) return str; else { var pos2 = str.indexOf('>', pos1); if (pos2 == -1) return str; return (str.substr(0, pos1) + str.substr(pos2+1)).stripTags();
String.prototype.striptags = function() { return this.replace(/(<.*?>)/g).replace(/undefined/g,'?');