title: Convert html tags to string php
body: <p>I have been trying to do the following for a long time and haven't been able to figure it out.</p>
  
  <p>I have an string in php which contains html in it like follows for example:</p>
  
  <pre><code>$var = "&lt;div style="display:inline"&gt;how&lt;/div&gt;
          &lt;div style="display:none"&gt;are&lt;/div&gt;
          &lt;div style="display:inline"&gt;you&lt;/div&gt;
          ?";
  </code></pre>
  
  <p>and would like to store in another string $var2, "howyou?";
  Basically, i'd like to render the html in php in a sense.</p>
  
  <p>How do i go about doing this?</p>
  
  <p>Thanks</p>