Nodejs String Remove removeBr()

Here you can find the source of removeBr()

Method Source Code

String.prototype.removeBr = function()
{
   return this.replace(/(<br \/>|<br>)/g, '');
};

Related

  1. remove(substr)
    String.prototype.remove = function (substr) {
      return this.replace(substr, '');
    };
    
  2. removeAccents()
    String.prototype.removeAccents = function(){
        return this
            .toLowerCase()
            .replace(/[?gi,"a")
            .replace(/[?gi,"e")
            .replace(/[?gi,"i")
            .replace(/[?/gi,"o")
            .replace(/[?gi, "u")
            .replace(/[^a-zA-Z0-9]/g," ");
    ...
    
  3. 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'],
    ...
    
  4. removeAllSpaces()
    String.prototype.removeAllSpaces = function () {
        return this.split(' ').join('');
    
  5. removeBlackLines()
    String.prototype.removeBlackLines = function () {
        return this.replace(/\n[\s\t]*\r*\n/g, '\n');
    };
    
  6. removeBreakLine()
    String.prototype.removeBreakLine = function() { 
      return this.replace(/(\r\n|\n|\r)/gm," ");
    
  7. removeBreakTags()
    'use strict';
    var DEV_MODE = false;
    String.prototype.removeBreakTags = function() {
      var target = this;
      return target.replace(new RegExp('<br/>', 'g'), ' ');
    };
    
  8. removeChar(character)
    String.prototype.removeChar = function (character) {
          return this.replaceAll(character, "");
    
  9. 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);
    ...