Here's a function for stripping html tags from a string.
const originalString = " <div> <p>Hey that's <span>something</span></p> </div> "; inline function stripHtmlTags(str) { local newString = str; local matches = Engine.getRegexMatches(newString, "<[^<>]+>"); for (x in matches) newString = newString.replace(x); return newString.trim(); } Console.print(stripHtmlTags(originalString));