title: jQuery is Commenting out my PHP Code Snippets
body: <p>I'm building a code snippet system and am using jQuery to display the editor.  I noticed jQuery likes to comment out any inline PHP code.  Is there a way to prevent this from happening:</p>
  
  <pre><code>&lt;textarea id='beep'&gt;&lt;/textarea&gt;
  </code></pre>
  
  <p>jQuery code:</p>
  
  <pre><code>var code = "&lt;div&gt;Why &lt;?php echo 'hello'; ?&gt; there!&lt;/div&gt;";
  var parsed = $(code).html();
  $('#beep').val(parsed);
  </code></pre>
  
  <p>This is what I would like to see in the textarea:</p>
  
  <pre><code>Why &lt;?php echo 'hello'; ?&gt; there!
  </code></pre>
  
  <p>But instead jQuery modifies it to look like this:</p>
  
  <pre><code>Why &lt;!--?php echo 'hello'; ?--&gt; there!
  </code></pre>
  
  <p>I understand this is probably a security measure, but is there a way to stop this from happening?</p>
  
  <p>I know I can use HTML entities to get around this, but due to the nature of this tool it would interfere with code snippets being posted that intentionally include html entities.</p>
  
  <p>JSFiddle: <a href="http://jsfiddle.net/YB4fD/1/" rel="nofollow">http://jsfiddle.net/YB4fD/1/</a></p>
  
  <p><strong>Additional Node</strong>:  Some answers suggest I use JavaScript to handle this without jQuery, but I need jQuery.  My string contains a DOM tree that I'm using jQuery to parse.</p>