Avoid HTML validators in your javascript inline code with CDATA


/ Published in: JavaScript
Save to your folder(s)

Use /*


Copy this code and paste it in your HTML
  1. <script type="text/javascript">
  2. /* <![CDATA[ */
  3. Javascript code
  4. /* ]]> */
  5. </script>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.