Outputting HTML markup from textarea as CDATA
This is an open discussion with 2 replies, filed under General.
Search
How about the cdata-section-elements
element on your xsl:output
element:
http://www.bernzilla.com/2008/02/12/utilizing-cdata-section-elements-in-xsl/
Might do the trick.
@nickdunn thank you for the response; I’ve tried that but for some reason that does not work as expected. I am not sure what I’m missing here.
Create an account or sign in to comment.
I’ve browsed the forum but I can’t find any guidelines considering this problem. I am setting up Symphony as a backend for full-Flash sites. All templates give XML output. Now I have certain textarea fields that are marked up using the TinyMCE editor. What I would like to do is to put the contents of these fields in CDATA. For example; I have a textarea field called Description. The ouput I get is
And I want it wrapped in CDATA such as:
Any hints on how to achieve this with XSLT? Thank you!