Hi all,
Can anyone tell me the best way to include HTML in an XML tag without
causing parsing problems?
Something like:
<item>
<name>blah</name>
<desc><font size="2">�10 each</font><br></desc>
</item>
Breaks and pound signs are a no-no in XML so... I've tried using a CDATA[]
section. But this both escapes the data within it and rejects pound signs
completely as being invalid.
I could escape the string before outputting into the XML tag, but I would
then need some way of un-escaping it in XML. Is this a possible approach?
Any ideas would be much appreciated.
Ta,
--Jim