title: Wordpress <![CDATA[ comments out my JavaScript
body: <p>I'm attempting to add a short script in the page editor, but Wordpress automatically adds CDATA tags to it. As I understand it that's usually fine, but I've been having an issue. I have it currently looking like this:</p>
  
  <pre><code>&lt;script&gt;// &lt;![CDATA[
  &lt;!--
    Some script here.
  // --&gt;
  //]]&gt;
  &lt;/script&gt;
  </code></pre>
  
  <p>The problem I keep running into is that since it's all on one line when the page is loaded, the // before the [CDATA[ ends up commenting out my whole script and it never runs. Why would this happen and how can I prevent it? Any advice is greatly appreciated!</p>