Here you can find the source of removeBreakTags()
'use strict';/*from w ww . j a v a2s . c o m*/ var DEV_MODE = false; String.prototype.removeBreakTags = function() { var target = this; return target.replace(new RegExp('<br/>', 'g'), ' '); };
String.prototype.removeAccents = function() { var diacritics = [ [/[\300-\306]/g, 'A'], [/[\340-\346]/g, 'a'], [/[\310-\313]/g, 'E'], [/[\350-\353]/g, 'e'], [/[\314-\317]/g, 'I'], [/[\354-\357]/g, 'i'], [/[\322-\330]/g, 'O'], ...
String.prototype.removeAllSpaces = function () { return this.split(' ').join('');
String.prototype.removeBlackLines = function () { return this.replace(/\n[\s\t]*\r*\n/g, '\n'); };
String.prototype.removeBr = function() return this.replace(/(<br \/>|<br>)/g, ''); };
String.prototype.removeBreakLine = function() { return this.replace(/(\r\n|\n|\r)/gm," ");
String.prototype.removeChar = function (character) { return this.replaceAll(character, "");
String.prototype.removeCharacters = function() { var twoStrings = this.split(", "), array2 = twoStrings[1], array1= twoStrings[0], temp = ""; for (var i = 0, length = array2.length; i < length; i++) { for (var j = 0, l = array1.length; j < l; j++) { if (array1[j] == array2[i]) { array1 = array1.remove(j); ...
String.prototype.removeChars = function () { varReturnStr = "" ; for ( var inx = 0 ; inx < this.length ; inx++ ) { if ( this.substring( inx, inx+1 ) != "-") varReturnStr = varReturnStr + this.substring( inx, inx+1 ) ; return varReturnStr;
String.prototype.removeClasses = function(s) return this.replace(/style="[^"]*"|class="[^"]*"/gi, "");