Search code examples
androidhtmlparsingplaintextgmail-api

Android - How to parse Gmail HTML messages to plain text?


I'm fetching GMail messages from new GMail API. I finally achieve to get Body Content from emails and most of them has complex html.

I tried to use Snacktory library but the results are not so good (parsing webs works pretty well).

Did you know alternatives that works better with "email html" or a way to ask gmail for a text/plain format perhaps?

Thank you!


Solution

  • Try using this: Android Html

    For most cases this has been enough for me.

    Hope this helps.

    Best Regards.