You can do it like this:
]]>]]><![CDATA[
This ends up breaking the CDATA section in two parts, but it's what you have to do.
Greg Hewgill
2009-02-11 18:37:34
You can do it like this:
]]>]]><![CDATA[
This ends up breaking the CDATA section in two parts, but it's what you have to do.
I think
<![CDATA[]]]]><![CDATA[>]]>
is the way to go.
See more at http://en.wikipedia.org/wiki/CDATA#Uses_of_CDATA_sections
The right angle bracket (
>
) […] must, for compatibility, be escaped using either ">
" or a character reference when it appears in the string "]]>
" in content, when that string is not marking the end of a CDATA section.
— http://www.w3.org/TR/REC-xml/#dt-chardata