CDATA being added automatically on JS in Yii?

瘦欲@ 提交于 2019-12-24 16:02:32

问题


I am coding in Yii and whenever I put any JS it tags it in CDATA.

Why is it getting added automatically? and will there be any problem if I remove it as I write my markup in HTML5.


回答1:


Like what arnaud said in the comment if the question, it wont affect your html 5 code. So its okay.

In addition, cdata tags are quite necessary to be used for scripts in XML, so its actually a feature from Yii.



来源:https://stackoverflow.com/questions/16656317/cdata-being-added-automatically-on-js-in-yii

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!