Consider the XML:
Code:
...
<Photo>
<img alt="Some Image" src="/assets/image.gif" />
</Photo>
...
I'm trying to output EXACTLY the following (used inside a JavaScript). Replace the first < character to < and replace every " character with \"
Code:
<img alt=\"Some Image\" src=\"/assets/image.gif\" />
I am stumped on how I would even attempt this. The only way I can get the image to actually display is by using copy-of which I can't seem alter it's value in any way.
Any help is appreciated,
Steve