Subject: Re: [xsl] CDATA or escape in the result tree problems From: Abel Braaksma <abel.online@xxxxxxxxx> Date: Mon, 30 Oct 2006 09:49:58 +0100 |
Hi all!
<xsl:copy-of
select="./ct:value/*/*"/> put into a CDATA section, or perhaps escaped.
Any ideas why this is so? Is it because I import this stylesheet? Is it a weakness with libxslt? Or have I misunderstood cdata-section-elements?
Now, I assume that a CDATA section is The Right Way To Do It, but I
don't know if TinyMCE thinks likewise. I have seen it simply escape <
and > to < and >, and still submit it back as proper HTML.
So, I figured, maybe I should be more pragmatic about it (I'm normally
such a purist), and just escape them too...
The problem is that I allow users to insert pretty much any HTML in there. My application does some validation and a bit of cleanup, so it should be valid, but that makes is slightly harder to write the template that it should match on if I were to just escape the HTML. If the cdata thing above seems hard to do, I would be happy for advices on how to do this as well.
<textarea><sometag /></textarea> <textarea><![CDATA[<sometag />]]></textarea> <textarea><sometag />></textarea>
Cheers, -- Abel Braaksma http://www.nuntia.com
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] CDATA or escape in the result, Kjetil Kjernsmo | Thread | RE: [xsl] CDATA or escape in the re, Michael Kay |
[xsl] CDATA or escape in the result, Kjetil Kjernsmo | Date | RE: [xsl] CDATA or escape in the re, Michael Kay |
Month |