How to Strip HTML tags in JavaScript
I needed to be able to do this today and the following approach saved me loads of time:
var StrippedString = OriginalString.replace(/(<([^>]+)>)/ig,"");
I needed to be able to do this today and the following approach saved me loads of time:
var StrippedString = OriginalString.replace(/(<([^>]+)>)/ig,"");