title: Avoid removal of spaces and newline while parsing html using jsoup
body: <p>I have a sample code as below.</p>
  
  <pre><code>String sample = "&lt;html&gt;
  &lt;head&gt;
  &lt;/head&gt;
  &lt;body&gt;
  This is a sample on              parsing html body using jsoup
  This is a sample on              parsing html body using jsoup
  &lt;/body&gt;
  &lt;/html&gt;";
  
  Document doc = Jsoup.parse(sample);
  String output = doc.body().text();
  </code></pre>
  
  <p>I get the output as</p>
  
  <pre><code>This is a sample on parsing html body using jsoup This is a sample on `parsing html body using jsoup`
  </code></pre>
  
  <p>But I want the output as</p>
  
  <pre><code>This is a sample on              parsing html body using jsoup
  This is a sample on              parsing html body using jsoup
  </code></pre>
  
  <p>How do parse it so that I get this output? Or is there another way to do so in Java?</p>