views:

273

answers:

1

Using swfobject I'm passing a xml string containg html which i escape using php htmlentites.

How would one go about converting it back to a valid xml string in flash as2?

flashvars.xmlString = "<?xml version='1.0' encoding='UTF-8'?><names><name>

Thanks

A: 

If I remember correctly AS2 doesn't naturally support encoding/decoding entities. If you could instead URL encode the XML then you could use AS2s built in escape and unescape functions.

Branden Hall