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.
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.
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.