How to escape the XML CData section ending sequence `]]>`?

How to escape the XML CData section ending sequence ]]>? The ]]> sequence itself may be part of the content in a CData section.

One solution is to split the ]]> token into 2 CData sections.

<![CDATA[to split the ]]]]><![CDATA[> token ]]> 

Leave a Reply

Your email address will not be published. Required fields are marked *