I figured it out:

> new XML("<value>" + xmlEscape(string) + "</value>");

is better done as:

> new XML(<value>{string}</value>);

See also: 
http://stackoverflow.com/questions/1856726/how-do-you-encode-xml-safely-with-actionscript-3/

Reply via email to