Is there a way to escape a CDATA end token in xml?

You have to break your data into pieces to conceal the ]]>.

Here’s the whole thing:

<![CDATA[]]]]><![CDATA[>]]>

The first <![CDATA[]]]]> has the ]]. The second <![CDATA[>]]> has the >.

Leave a Comment