title: str_replace/nl2br not acting as expected
body: <p>I'm having some weird difficulty with removing "\n"'s from data that is pulled from a database.</p>
  
  <p>The data is an email and gets stored with \n's throughout it by the system that inputs it.</p>
  
  <p>When I display it, I've tried to remove these \n's using the following:</p>
  
  <pre><code>$htmlbody = str_replace("\n", "", $message['htmlbody']);
  </code></pre>
  
  <p>or</p>
  
  <pre><code>nl2br($message['htmlbody']);
  </code></pre>
  
  <p>but both commands still return a string that is full of \n's.</p>
  
  <p>The variable $message['htmlbody'] includes a string like <code>\n\n &lt;div&gt;\n Example Data \n &lt;/div&gt;\n</code>, and this data remains the same after being passed through str_replace.</p>
  
  <p>The data originally comes from a JSON webhook which has replaced all the newlines in an HTML email with \n's. I have control over the data being put into the database as well, and have tried using the above actions on the original data with the same result.</p>
  
  <p>Any thoughts on what might cause this?</p>
  
  <p>Cheers.</p>