Strip HTML tags from String - Node.js String

Node.js examples for String:Strip

Description

Strip HTML tags from String

Demo Code


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

Related Tutorials