|
|
strip HTML tags using javascript - Javascript
|
Views : 817
|
|
Tagged in : Javascript
|
|
|
Report This Scrap as Inappropriate We request you to choose the appropriate categroy and subcategory that suits your
objectionable concern about the scrap, So that our team can review and find out whether it violates our Guidelines or the
scrap is not suitable for all viewers.
|
Here is the javascript code for striping HTML tags in a string :
String.prototype.stripHTML = function()
{
var matchTag = /<(?:.|s)*?>/g;
return this.replace(matchTag, "");
}
|
|
By Selva, On - 2009-07-21 |
|
|
|