Nodejs HTML Strip stripTags()

Here you can find the source of stripTags()

Method Source Code

//from prototype library

String.prototype.stripTags = function()
{
    return this.replace(/<\/?[^>]+>/gi, '');
};

Related

  1. stripHtml()
    String.prototype.stripHtml = function () {
        var _self = this.replace(/(<([^>]+)>)/ig, '');
        return _self;
    
  2. stripHtml()
    String.prototype.stripHtml = function() {
      return this.replace(/<[^>]+>/g, "");
    };
    console.assert("<p>Shoplifters of the World <em>Unite</em>!</p>".stripHtml() == "Shoplifters of the World Unite!");
    console.assert("1 &lt; 2".stripHtml() == "1 &lt; 2");
    
  3. stripHtml()
    String.prototype.stripHtml = function () {
      return this.replace(/<(?:.|\n)*?>/gm, '');
    };
    
  4. stripHtml()
    String.prototype.stripHtml = function () {
      "use strict";
      var htmlRegex = /(<([^>]+)>)/ig;
      return this.replace(htmlRegex, '');
    };
    
  5. stripHtml()
    ?
    String.prototype.stripHtml = function () {
        return this.replace(new RegExp(/<[^>]+>/g), "");
    };
    
  6. stripTags()
    String.prototype.stripTags = function () {
      return this.replace(/(<([^>]+)>)/ig, "");
    };
    
  7. stripTags()
    String.prototype.stripTags = function(){
      var entity = {
        quot: '"',
        lt: '<',
        gt: '>',
        nbsp: ' '
      };
      return function ( ) {
        return this.replace(/&([^&;]+);/g,
    ...
    
  8. stripTags()
    String.prototype.stripTags = function() {
        var div = document.createElement("div");
        div.innerHTML = this.br2nl();
        return div.textContent || div.innerText || "";
    };
    
  9. stripTags()
    String.prototype.stripTags = function() {
      return this.replace(/(<([^>]+)>)/ig, '');