I have this string:
var string = \'
You can use regex to get text from string that contains HTML tags.
regex
HTML
This way you strip all HTML tags with empty string.