Core Docs | Additional Modules Docs

String.prototype.stripHTML


@Description: Removes all HTML tags from a string
@File: String/prototype/stripHTML.js
@Author: Paul Visco
@Version: 1.0 11/19/07
@Return: String The original string without any HTML markup
@Example:
var myString = 'hello <p>world</p> on earth';

var newString = myString.stripHTML();
//newString = 'hello world on earth'