I'm writing an app that let's my client upload images, the image html code is added to an XML file.
Take a look at the <image> element below:

<item Code="e1022">
<image><![CDATA[<img src="uploads/image2.jpg" alt="Homepage Image" width="124" height="70" />]]></image>
    <name>Blue Ski Trousers</name>

Now, whenever PHP writes this to the XML files, it turns the < and > into &lt; and &gt; . which means it does not display on the webpage. How can I prevent this from happening ?

Many thanks,

PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to