title: converting text line breaks in database when they are echo'd out
body: <p>I am using ckEditor as a BBCode editor and having to do a bit of deeper work than just installing some plugins.</p>
  
  <p>When saving to the database, in the field i will have e.g.</p>
  
  <pre><code>1
  2
  3
  </code></pre>
  
  <p>Yet when it is echo'd out it is</p>
  
  <pre><code>123
  </code></pre>
  
  <p>I need help converting those line breaks in the database, and either putting each line into a <p> tag or created something out of the line breaks.</p>
  
  <p>I am using this function to convert other BBCodes into html just cant figure out this.</p>
  
  <pre><code>function basicbbcode($text) {
      $text = str_replace("[b]", "&lt;b&gt;", "$text");
      $text = str_replace("[/b]", "&lt;/b&gt;", "$text");
      return $text;
  }
  </code></pre>
  
  <p>The other option i see is to convert the line breaks to <br> etc when inputting to the DB.</p>