title: PHP/jQuery Uncaught SyntaxError: Unexpected token ILLEGAL
body: <p>i have problem with between php and jQuery/Javascript...It wont show up or can't work.</p>
  
  <p>My Code:</p>
  
  <pre><code>if($bottom_1_banner == "true"){
          //$data_AD .= '$(\'.ban_bottom\').html(\''.htmlentities($bottom_banner).'\').text();';
          $data_AD .= '$(\'.ban_bottom\').html("'.htmlspecialchars($bottom_banner).'").text();';
  }
  </code></pre>
  
  <p>Error Log: (Chrome/Safari)</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      $(document).ready(function() {
          $('.ban_bottom').html("&amp;lt;!-- xxxxxxx --&amp;gt;
  ******index.php:11 Uncaught SyntaxError: Unexpected token ILLEGAL******
              &amp;lt;script type=&amp;quot;text/javascript&amp;quot;&amp;gt;
              xxxxxxx_bid = &amp;quot;xxxxxxxxxxx&amp;quot;;
              &amp;lt;/script&amp;gt;
              &amp;lt;script type=&amp;quot;text/javascript&amp;quot; src=&amp;quot;http://xxx.xxxxxx.com/k.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;
              &amp;lt;!-- xxxxxxxx --&amp;gt;").text();    });
  &lt;/script&gt;
  </code></pre>
  
  <p>OR</p>
  
  <p><img src="https://i.stack.imgur.com/jIX6k.jpg" alt="Error Log"></p>
  
  <p>Edited: Converted Image to Text.</p>