How to escape the XML CData section ending sequence `]]>`? Posted on Mar 26, 2018 by Q A 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 ]]> Read more: Which are sequence points in C? How to escape special characters in a Bash string in Linux? How to delete or get the number in the tail from a string in shell script? How to exclude a package from a specific repository only in yum? How to test a file or directory exists in C++? How to get the one character’s next character in ASCII table in Bash? How to iterate all dirs and files in a dir in C++? How to cat a text file out from a tar archive without having to extracting it?