title: PHP new line in string, how to add <p> tag
body: <p>So i have a PHP class value that has the following text inside</p>
  
  <pre><code>$classvalue =
    'line1 line1
  
    line2 line2
  
    line3 line3';
  </code></pre>
  
  <p>How can i convert this into proper HTML markup?</p>
  
  <pre><code>$classvalue =
    'line1 line1
    &lt;br&gt;
    line2 line2
    &lt;br&gt;
    line3 line3';
  </code></pre>