I was working on an app and needed to remove all HTML instances in a string. Well, that same functionality was needed elsewhere so…I created a class.

* String Utility functions
* @author John C. Bland II
* @version 0.1
package utils{
public class StringUtils {
public static function stripHTML(value:String):String{
return value.replace(/<.*?>/g, "");

To use it you simply:

trace(StringUtils.stripHTML("some html string"));

Hope this helps someone.