I’m John C Bland II

Husband, Father, Tech Author, Deacon.
Founder of Katapult Media, and full-stack polyglot developer.
Political Free Agents Podcast Host.

I create. I launch.

YouTube Channel

I post regular fun on YouTube like me playing the bass and anything else I find fun. 

Get Something Built

All project work goes through Katapult Media. Business is open. Let’s chat.

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.