Flash AS2 how to detect HTML tags within text and remove
Posted on 2009-02-13
I'm wanting to create a function that can search through a string and find and remove any HTML tags.
I'm thinking along the line that if I search for the first < then search for the following > and count how many characters are in between, then remove them to create the new shorter string...
so "this text has <br/> no <strong> tags" would end up as "this text has no tags";
Could anyone offer a solution on how to achieve this please.
Thanks in advance.