is it possible to use the jquery text() function to remove all HTML in a string?
String with HTML tags:myContent = \'
myContent = \'
Could you not just try it?
myContent = 'Hello world!'; console.log($(myContent).text()); //Prints "Hello world!"
Note that you need to wrap the string in a jQuery object, otherwise it won't have a text method obviously.
text