在Yii的JS上自动添加CDATA? [英] CDATA being added automatically on JS in Yii?
本文介绍了在Yii的JS上自动添加CDATA?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在Yii编码,每当我把任何JS标记在CDATA中。
I am coding in Yii and whenever I put any JS it tags it in CDATA.
为什么它会自动添加?当我在HTML5中写下我的标记时,如果我删除它会有任何问题。
Why is it getting added automatically? and will there be any problem if I remove it as I write my markup in HTML5.
推荐答案
就像arnaud在评论中所说的那样如果问题,它不会影响你的HTML 5代码。所以没关系。
Like what arnaud said in the comment if the question, it wont affect your html 5 code. So its okay.
此外,cdata标签非常有必要用于XML中的脚本,所以它实际上是Yii的一个功能。
In addition, cdata tags are quite necessary to be used for scripts in XML, so its actually a feature from Yii.
这篇关于在Yii的JS上自动添加CDATA?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文