Is there a jQuery version of this function?
string strip_tags( string $str [, string $allowable_tags ] )
stri
Just use a regular expression:
html.replace( /<.*?>/g, '' );
Done. :)
For the p tag:
p
html.replace( /<[^p].*?>/g, '' );
For other tags, it gets more complicated.