[thelist] XML / XSLT outputting HTML entities
Rick den Haan
rick.denhaan at gmail.com
Sat Apr 23 17:53:41 CDT 2005
Hi Andrew,
Have you tried putting it in a CDATA section[0]? E.g.:
<entry>
<body><![CDATA[this is part of an xml file<br /><br />etc]]></body>
</entry>
HTH,
Rick.
[0]: http://www.w3.org/TR/REC-xml/#sec-cdata-sect
On 4/24/05, Andrew Martin <andrewdmartin at gmail.com> wrote:
> I've got an xml file with HTML tags in the elements; something like this:
> <entry>
> <body>this is part of an xml file<br /><br />etc</body>
> </entry>
>
> When it's rendered, it just shows up all on one line and strips the
> HTML. I've tried to change the xml output method from xml to html but
> that just renders the actual html entities rather than the line
> breaks.
>
> Is there a good way around this?
More information about the thelist
mailing list