title: How do I convert a formatted email into plain text in Java?
body: <p>I have a program that forwards an email as a text message to a Customer.</p>
  
  <p>Now a Simple reply to an email with text <em>"420"</em> written in its message body gets converted to </p>
  
  <pre><code>*
  
      &lt;div dir="ltr"&gt;420&lt;/div&gt;&lt;div class="gmail_extra"&gt;&lt;br&gt;&lt;br&gt;&lt;div class="gmail_quote"&gt;On Thu, Aug 8, 2013 at 4:14 PM, &lt;span dir="ltr"&gt;&amp;lt; 3:50 AM+11111111111: (2/6)&lt;a href="mailto:xxxxxx@gmail.com" target="_blank"&gt;xxxxxx@gmail.com&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt; &lt;blockquote class="gmail_quot 3:50 AM +14411111111: (3/6)e" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"&gt;414&lt;div class="HOEnZb"&gt;&lt;div class="h5"&gt;&lt;br&gt;DO_NOT_REPLY:This i 3:50 AM
   : (4/6)s an email notification that you have received a text message from a customer in . If you reply to this email, a text message or 3:50 AM
   (5/6)email message will NOT go to the customer. Access the customer text message to send a reply. &lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt; 3:50 AM
      (6/6)&lt;br&gt;&lt;/div&gt;
  
  *
  </code></pre>
  
  <p>How to I remove all formatting from Text and only forward the message body ?</p>