How to do a function that wipes HTML? I have a field that comes from a WS and I need, before displaying on the page, to clean the HTML.
They sent me this:
String result = Regex.Replace(htmlDocument, @"<[^>]*>", String.Empty);
I need to put this code in a jquery function, right here, and this.ShortDescription
is the guy I want to clean. How do I do it?
str += '<p>' + this.ShortDescription + '</p>';
The above code is part of a jQuery function.