我如何写文字“]]>”在CDATA部分中,但不结束该部分 [英] How do i write the literal "]]>" inside a CDATA section without it ending the section

查看:71
本文介绍了我如何写文字“]]>”在CDATA部分中,但不结束该部分的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一个非常简单的问题,我正在编写一个XML文档,但不确定如何编写]]>,而这并未被视为本节的结尾。

Pretty simple question, I'm writing an XML document and i'm not sure how to write "]]>" without it being seen as the end of the section.

推荐答案

您可以这样做:

]]>]]&gt;<![CDATA[

这最终将CDATA节分为两部分,但这是您必须要做的。

This ends up breaking the CDATA section in two parts, but it's what you have to do.

这篇关于我如何写文字“]]&gt;”在CDATA部分中,但不结束该部分的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆