When is a CDATA section necessary within a script tag?

后端 未结 15 2603
时光说笑
时光说笑 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:56

    CDATA tells the browser to display the text as is and not to render it as an HTML.

提交回复
热议问题