Javascript String stripHtml() return stripHtml(this); }

Description

Javascript String stripHtml() return stripHtml(this); }


?function stripHtml(markup) {
    if (markup == null) return markup;
    return markup.replace(/<\/?[^>]+(>|$)/g, "");
}

String.prototype.stripHtml = function () { return stripHtml(this); }



PreviousNext

Related