title: beautify echo-ed coding while displayed in input element
body: <p>I'm writing this code to send emails from my site.
  Before sending the mail i have form page which looks a bit like an outlook mailmessage where i can edit the prefilled subject and mailcontent.
  The mail content is gathered from a database where I have written it in html with some php echo elements. so that, once it is send the receiver gets a nice looking message.</p>
  <p>Only problem is, it looks crapy for me, since the content in my prefilled form is displayed in a single line html code.</p>
  <p>Is there anyway I can beautify the code displayed in my form-input? Or even display it decoded and then send it again in html-code to the receiver.</p>
  <pre><code>$subject = $_POST[&quot;subject&quot;];
  $content = $_POST[&quot;content&quot;];
  $sql = mysqli_query($conn,&quot;SELECT ...&quot;); 
    while($data = mysqli_fetch_array($sql)){
      $to = $data['email'];
      $headers = &quot;MIME-Version: 1.0&quot; . &quot;\r\n&quot;;
      $headers .= &quot;Content-type:text/html;charset=UTF-8&quot; . &quot;\r\n&quot;;
      $headers .= 'From: &lt;info@skayacademy.be&gt;' . &quot;\r\n&quot;;
  
      $mail = mail($to,$onderwerp,$content,$headers);
    }
  
  &lt;html&gt;
  &lt;form&gt;    
  &lt;?php  
    $sql = mysqli_query($conn,&quot;SELECT * FROM mailings WHERE message-type='event-paid'&quot;); 
    while($data = mysqli_fetch_array($sql)){ $content=$data['content']; } 
  ?&gt; 
    &lt;label&gt;CONTENT:&lt;/label&gt;
    &lt;input type=&quot;text&quot; name=&quot;content&quot; class=&quot;form-control text-box&quot; value=&quot;&lt;?php echo $content; ?&gt;&quot;&gt;
  </code></pre>