Strip html tags from a text, in actionscript

Hello !

i’m building a search functionality that searches into an array containing sometimes html formatted text.

I would like to ask if you have any idea how to strip those html tags , so having only the core text to display has search results ?

thanks a lot in advance,

Alex