In the following block, why do we need the //<![CDATA[ ... //]]> block?
@using(Script.Foot()) { <script type ="text/javascript"> //<![CDATA[ $(document).ready(function () { alert('page loaded'); }); //]]> </script> } Related Questions:
In the following block, why do we need the //<![CDATA[ ... //]]> block?
@using(Script.Foot()) { <script type ="text/javascript"> //<![CDATA[ $(document).ready(function () { alert('page loaded'); }); //]]> </script> } Related Questions:
CDATA sections? CDATA sections tell the XML parser to read the characters without interpreting them as element or entity markup.// marks? We introduce the CDATA opening and closing tags with // marks, so the JavaScript parser ignores the CDATA tags.References