is it possible to use the jquery text() function to remove all HTML in a string?
String with HTML tags:myContent = \'
myContent = \'
I found in my specific case that I just needed to trim the content. Maybe not the answer asked in the question. But I thought I should add this answer anyway.
$(myContent).text().trim()