title: How to handle <br /> tags in Android
body: <p>I've been searching for a while now onine and just havn't been able to nail the correct answer for this one. Long story short, I'm retreiving a webpage from onine to use as my inbox. I desperately need to skip lines in between each "message" so I put <br /> tags in my php. It works perfectly in a web broweser but, in my Android application, I can actually see the <br /> tags as plain text. Just trying to read them as "next/new lines". Any ideas?</p>
  
  <p>My method code:</p>
  
  <pre><code>public String getInbox(String where){
  
          BufferedReader in = null;
          String data = null;
          try{
  
  
              HttpClient client = new DefaultHttpClient();
              URI website = new URI("http://example.com/getInbox.php?where="+where);
  
              HttpPost post_request = new HttpPost();
              post_request.setURI(website);
  
  
              HttpGet request = new HttpGet();
  
              request.setURI(website);
              //executing actual request
  
                          //add your implementation here
              HttpResponse response = client.execute(request);
  
              in = new BufferedReader(new InputStreamReader(response.getEntity().getContent()));
              StringBuffer sb = new StringBuffer("");
              String l = "";
              String nl = System.getProperty("line.separator");
              while ((l = in.readLine()) != null) {
                  sb.append(l+nl);
  
              }
              in.close();
              data = sb.toString();
  
  
  return data;
          }catch (Exception e){
              return "ERROR";
  
          }
  
          }
  </code></pre>
  
  <p>The output in a webpage:</p>
  
  <pre><code>eg test
  eg test
  eg lol
  eg lol
  eg testing
  </code></pre>
  
  <p>The output in android:</p>
  
  <pre><code>eg test&lt;br /&gt;eg test&lt;br /&gt;eg lol&lt;br /&gt;eg lol&lt;br /&gt;eg testing&lt;br /&gt;eg
  </code></pre>