title: Unexpected token ILLEGAL javascript + php
body: <p>Here is the source code:</p>
  
  <pre><code>    $(document).ready(function(){
  
          $.post("scan.php?dir=&lt;?=$_POST['dir']?&gt;", function(data){
  
              alert(data);
  
          });
  
      });
  </code></pre>
  
  <p>The generated code is:</p>
  
  <pre><code>    $(document).ready(function(){
  
          $.post("scan.php?dir=C:\xampp\htdocs\windowsMedias\music", function(data){
  
              alert(data);
  
          });
  
      });
  </code></pre>
  
  <p>But it won't work (google chrome returns the error in the title).</p>
  
  <p>If I add the generated code manually, without PHP, it works.</p>
  
  <p>Someone knows how to fix it?</p>