When is a CDATA section necessary within a script tag?

后端 未结 15 2271
时光说笑
时光说笑 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 23:11

    CDATA indicates that the contents within are not XML.

    Here is an explanation on wikipedia

提交回复
热议问题