Nodejs String Remove removeClasses(s)

Here you can find the source of removeClasses(s)

Method Source Code

String.prototype.removeClasses = function(s)
{
    return this.replace(/style="[^"]*"|class="[^"]*"/gi, "");
}

Related

  1. removeBreakLine()
    String.prototype.removeBreakLine = function() { 
      return this.replace(/(\r\n|\n|\r)/gm," ");
    
  2. removeBreakTags()
    'use strict';
    var DEV_MODE = false;
    String.prototype.removeBreakTags = function() {
      var target = this;
      return target.replace(new RegExp('<br/>', 'g'), ' ');
    };
    
  3. removeChar(character)
    String.prototype.removeChar = function (character) {
          return this.replaceAll(character, "");
    
  4. 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);
    ...
    
  5. 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;
    
  6. removeComma()
    String.prototype.removeComma = function() {
        return(this.replace(/,/g,''));
    
  7. removeDiacritics()
    String.prototype.removeDiacritics = function() {
        var result = this.replace(/i/g, 'i')
                    .replace(/?/, 'c');
        return result;
    
  8. removeDots()
    String.prototype.removeDots = function() {
      return this.replace(/\./g, '');
    };
    
  9. removeEndLine()
    String.prototype.removeEndLine = function() {
        var tmp = "";
        for(var i = 0, length = this.length; i < length; i++) {
            var c = this.charAt(i);
            if(c != "\n" && c != "\r") {
                tmp += c;
        return tmp;
    ...