I need to create an editable XML file to deliver content to a flash site.
I create my file with the html form and htmlspecialcharsfor example:
$currentItem = htmlspecialchars(stripslashes($currentItem));
This is to prevent the writing of XML characters that lead to the error "XML parsing error: not correctly formed , for example
<entry title="Words & Things">
---------------------^
It has a side effect that the flash file file displays html codes for the content, and not the corresponding characters.
Is there a good way to convert codes back as soon as they are read into a Flash file (as3)?
source
share