Using CDATA inside another CDATA

后端 未结 1 1403
渐次进展
渐次进展 2020-12-03 10:39

I have this difficult situation where I need to use the CDATA tags inside another CDATA tags. The situation is simple to explain though.

I have the following thing:<

相关标签:
1条回答
  • 2020-12-03 11:13

    You can escape ]]> substring in CDATA section by replacing it with:

    ]]]]><![CDATA[>
    

    ... line. With this you'll make ]] a part of one CDATA section, and > - of another, that starts right when the preceding one ends.

    0 讨论(0)
提交回复
热议问题