title: How do I prevent PHP from stripping my Slashes of my background-image CSS statement?
body: <p>So I have been struggling for at least an hour now.</p>
  
  <p>I have this code:</p>
  
  <pre><code>if($type == 'p'){
              echo '&lt;div class="post" style="top: '.$spacing.'px;"&gt;
                      &lt;a href="'.$source.'"&gt;&lt;div class="postwrapper"&gt;
                          &lt;div class="thumbnail" style="background-image: url("http://localhost/varea/media/thumbnails/'.$postid.'.jpg")"&gt;&lt;/div&gt;
                          &lt;div class="info"&gt;
                              &lt;div class="title"&gt;'.$title.'&lt;/div&gt;
                              &lt;div class="pdesc"&gt;
                                  &lt;p&gt;Likes: '.$likes.'&lt;/p&gt;
                                  &lt;p&gt;Dislikes: '.$dislikes.'&lt;/p&gt;
                              &lt;/div&gt;
                          &lt;/div&gt;
                          &lt;div class="underline"&gt;&lt;/div&gt;
                      &lt;/div&gt;&lt;/a&gt;
                  &lt;/div&gt;';
          }
  </code></pre>
  
  <p>But when I load the Page the "/" get stripped and my css statement looks like this:</p>
  
  <pre><code>&lt;div class="thumbnail" style="background-image: url(" http:="" localhost="" media="" thumbnails="" 2.jpg");"=""&gt;&lt;/div&gt;
  </code></pre>
  
  <p>So how do I tell php to stop removing the slashes?</p>