SyntaxFix
Write A Post
Hire A Developer
Questions
if you want to strip all tags, then try this
function:
String.prototype.stripTags=function(){ var rtag=/<.*?[^>]>/g; return this.replace(rtag,''); }
usage:
var newText=$('selector').html().stripTags();