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

Posted on In QA, Tutorial

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.