title: Text without css tags in Android
body: <p>I have an email body and it has html,css tags and I am trying to retrieve only the body text in Android.</p>
  
  <p>I used;</p>
  
  <pre><code>String.valueOf(Html.fromHtml(body);
  </code></pre>
  
  <p>and that gave me the text with css tags. What should I do for retrieve only the text? 
  Result is holding in a String</p>
  
  <p>Normally (when I first receive body );</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;style&gt;&lt;!--
  .hmmessage P
  {
  margin:0px;
  padding:0px
  }
  body.hmmessage
  {
  font-size: 10pt;
  font-family:Tahoma
  }
  --&gt;&lt;/style&gt;&lt;/head&gt;
  &lt;body class='hmmessage'&gt;&lt;div dir='ltr'&gt;
  TEXTONE&lt;div&gt;TEXTTWO&lt;/div&gt;                     &lt;/div&gt;&lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>After String.valueOf(Html.fromHtml(body);</p>
  
  <pre><code>&lt;!-- .hmmessage P { margin:0px; padding:0px } body.hmmessage { font-size: 10pt; font-family:Tahoma } --&gt;
  
  TEXTONE
  TEXTTWO
  </code></pre>
  
  <p>I just want to receive TEXTONE and TEXTTWO</p>