title: Keeping line breaks in jsoup to display in android listview
body: <p>Heu guys i have an app where i'm parsing an html file using jsoup to display selected texts in a listview in android. However i cant seem to find a way to keep the carriage returns.<br>
  Here is what i have attempted :</p>
  
  <pre><code>Elements br = doc.select("br");
  
      for (Element src : br) {
           src.append("\n");
       }
  </code></pre>
  
  <p>To give you an example with a string</p>
  
  <pre><code>&lt;div
  This is a string &lt;br&gt; another string
  /&gt;
  </code></pre>
  
  <p>Is parsed and displays :</p>
  
  <pre><code>This is a string another string
  </code></pre>
  
  <p>I have tried using </p>
  
  <pre><code>src.append("\\n");
  </code></pre>
  
  <p>Which displays</p>
  
  <pre><code>This is a string \n another string
  </code></pre>
  
  <p>I am using an arraylist of strings to store these variables.</p>
  
  <p>Ive been trying to find a solution to this problem with no luck i have attempted solutions from the following threads:</p>
  
  <p><a href="https://stackoverflow.com/questions/5640334/how-do-i-preserve-line-breaks-when-using-jsoup-to-convert-html-to-plain-text">How do I preserve line breaks when using jsoup to convert html to plain text?</a></p>
  
  <p><a href="https://stackoverflow.com/questions/5348455/removing-html-entities-while-preserving-line-breaks-with-jsoup">Removing HTML entities while preserving line breaks with JSoup</a></p>