title: how to remove slashes from my json result with cakePHP
body: <p>I've built a REST webservice and I want to remove the slashes from my json result. I have some data stored in my DB, which one of the fields contains a websitelinks.I can access them through my normal-view which is html and through my json-view. The normal returns de links normal but the json ads slashes to it like:  </p>
  
  <pre><code>       http:\/\/mywebsite\/company\/upload\/siteman\/thumbnails\/carr\/
  </code></pre>
  
  <p>How can i remove this? Here is my cakephp code:</p>
  
  <pre><code>       // De html view
         &lt;h2&gt;View all posts&lt;/h2&gt;
  
      &lt;table&gt;
       &lt;tr&gt;
       &lt;th&gt;Title&lt;/th&gt;
       &lt;th&gt;Body&lt;/th&gt;
       &lt;/tr&gt;
  
       &lt;?php foreach($images as $image):?&gt; 
        &lt;tr&gt;
          &lt;td&gt;&lt;?php echo $image['Image']['id'];?&gt;&lt;/td&gt; 
          &lt;td&gt;&lt;?php echo $image['Image']['plaatjes'];?&gt;&lt;/td&gt;
        &lt;/tr&gt;
       &lt;?php endforeach; ?&gt;
      &lt;/table&gt;
  
      // The json view 
      &lt;?php
      echo json_encode($images);
      ?&gt;
  </code></pre>