Are CDATA tags ever necessary in script tags and if so when?
In other words, when and where is this:
<script type="text/javascript">
//<![CDATA[
...code...
//]]>
</script>
preferable to this:
<script type="text/javascript">
...code...
</script>
转载于:https://stackoverflow.com/questions/66837/when-is-a-cdata-section-necessary-within-a-script-tag