title: How to remove backslash on json_encode() function?
body: <p>How to remove the <code>(\)</code>backslash on a string? when using <code>echo json_encode()</code> ?</p>
  
  <p>For example:</p>
  
  <pre><code>&lt;?php
  $str = "$(\"#output\").append(\"&lt;p&gt;This is a test!&lt;/p&gt;\")";
  
  echo json_encode($str);
  ?&gt;
  </code></pre>
  
  <p>note: When you echo $str, there will be no problem... but when you echo out using <code>json_encode()</code>, the <code>(\)</code>backslash will show up.</p>
  
  <p>Is there a way to solve this?</p>