Posted By

kyokutyo on 12/14/06


Tagged

cdata


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

mountainash
jacksont123


CDATA


 / Published in: JavaScript
 

よく書き方忘れるんで

  1. <script type="text/javascript">
  2. /*<![CDATA[*/
  3.  
  4. /*
  5.  * hogehoge javascript here
  6.  */
  7.  
  8. /*]]>*/
  9.  
  10.  
  11. //<![CDATA[
  12.  
  13. /*
  14.  * hogehoge javascript here
  15.  */
  16.  
  17. //]]>
  18. </script>

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: mountainash on January 27, 2007

Handy for inline JavaScript escaping in HTML/XHTML.

You need to login to post a comment.