title: using a div contentEditable innerText and innerHTML neither have newlines to and from database
body: <p>I'm using a div for people to enter text and then I tried saving</p>
  
  <pre><code>div.innerText
  </code></pre>
  
  <p>and</p>
  
  <pre><code>div.innerHTML
  </code></pre>
  
  <p>to my database but when I bring it back from the database and put it back into the div all of the carriage returns or newlines are gone</p>
  
  <p>innerHTML to database</p>
  
  <pre><code>a
  
  b
  
  c
  
      //in database like this  &lt;div&gt;a&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;b&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;c&lt;/div&gt;
  </code></pre>
  
  <p>innerText to database</p>
  
  <pre><code>a
  a
  a
  a
  a
  a
      //how it stored in database  aaaaaa
  </code></pre>
  
  <p>if you could tell me how to handle this situation I would appreciate it greatly thank you for your time</p>