title: Display text format with break lines - Jquery
body: <p>I store a text in my database as</p>
  <p><code>$dataStorage = &quot;This is my short string.\n\nThank you.&quot;</code> When i fetch the string from database and display in input box or text area, It appears just as it is stored in the database (i.e with the new break line&quot; as below</p>
  <pre><code>This is a short string. 
  
  Thank you.
  </code></pre>
  <p>Now, i am trying to display the text in div. The text appears but the new lines do not show. So it appears like</p>
  <pre><code>This is a short string.Thank you
  </code></pre>
  <p>How can i fix this using jquery</p>
  <p><strong>HTML</strong></p>
  <pre><code>&lt;div class=&quot;chat-content rounded&quot; id=&quot;msg&quot;&gt;
  &lt;/div&gt;
  </code></pre>
  <p><strong>JS</strong></p>
  <p>//result is the string from the database</p>
  <pre><code>$('#msg').val(result);
  </code></pre>