Actionscript html encode & decode

Is anyone familiar with classes that support html encoding/decoding in AS3 or Flex?

Similar to:

[COLOR=#800080]http://meyerweb.com/eric/tools/dencoder/[/COLOR]

what is being done here?