When is a CDATA section necessary within a script tag?

后端 未结 15 2293
时光说笑
时光说笑 2020-11-21 22:37

Are CDATA tags ever necessary in script tags and if so when?

In other words, when and where is this:



        
15条回答
  •  你的背包
    2020-11-21 22:55

    Do not use CDATA in HTML4 but you should use CDATA in XHTML and must use CDATA in XML if you have unescaped symbols like < and >.

提交回复
热议问题