Nodejs String Remove removeBreakTags()

Here you can find the source of removeBreakTags()

Method Source Code

'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'), ' ');
};

Related

  1. removeAccents()
    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'],
    ...
    
  2. removeAllSpaces()
    String.prototype.removeAllSpaces = function () {
        return this.split(' ').join('');
    
  3. removeBlackLines()
    String.prototype.removeBlackLines = function () {
        return this.replace(/\n[\s\t]*\r*\n/g, '\n');
    };
    
  4. removeBr()
    String.prototype.removeBr = function()
      return this.replace(/(<br \/>|<br>)/g, '');
    };
    
  5. removeBreakLine()
    String.prototype.removeBreakLine = function() { 
      return this.replace(/(\r\n|\n|\r)/gm," ");
    
  6. removeChar(character)
    String.prototype.removeChar = function (character) {
          return this.replaceAll(character, "");
    
  7. removeCharacters()
    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);
    ...
    
  8. removeChars()
    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;
    
  9. removeClasses(s)
    String.prototype.removeClasses = function(s)
        return this.replace(/style="[^"]*"|class="[^"]*"/gi, "");