title: Format extracted text
body: <p>I am using jquery to extract just the text from the p element in a div. The issue I have is when I extract the text it does not preserve the line breaks. </p>
  
  <p>Here is the code I am using</p>
  
  <pre><code> $('div.post-content p').text();
  </code></pre>
  
  <p>There are multiple p tags within div so I want to preserve them in their own class.</p>
  
  <p>For example each sentence is a different p tag and shows like this currently: Some text. Some other text. Some more text. </p>
  
  <p>I want it to look like this:</p>
  
  <p>Some text.</p>
  
  <p>Some other text.</p>
  
  <p>Some more text.</p>
  
  <p>Thanks in advance.</p>