A AndroidMadhu Active Member Licensed User Mar 29, 2022 #1 Hello, I am building a mail client at B4A. While using POP3 pop.gmail.com., after using the mailparser.parsemail, I am still getting html tags inside my messages. How do I remove the html tags from my messages. Thanks
Hello, I am building a mail client at B4A. While using POP3 pop.gmail.com., after using the mailparser.parsemail, I am still getting html tags inside my messages. How do I remove the html tags from my messages. Thanks
DonManfred Expert Licensed User Longtime User Mar 29, 2022 #2 AndroidMadhu said: I am still getting html tags inside my messages. Click to expand... It is a HTML mail then? AFAIK parsemail does not remove HTML. Upvote 0
AndroidMadhu said: I am still getting html tags inside my messages. Click to expand... It is a HTML mail then? AFAIK parsemail does not remove HTML.
A AndroidMadhu Active Member Licensed User Mar 29, 2022 #3 Could you please suggest how to remove the HTML Thanks Upvote 0
DonManfred Expert Licensed User Longtime User Mar 29, 2022 #4 I have no idea. Search the forum; there are many threads about this issue using RegEx. You mabe further develop the methods found. Edit: "JSoup" should be able to Parse a html and return the stripped TEXT. Try this one: https://www.b4x.com/android/forum/threads/jsoup-html-parser.49152/#content Upvote 0
I have no idea. Search the forum; there are many threads about this issue using RegEx. You mabe further develop the methods found. Edit: "JSoup" should be able to Parse a html and return the stripped TEXT. Try this one: https://www.b4x.com/android/forum/threads/jsoup-html-parser.49152/#content
Erel B4X founder Staff member Licensed User Longtime User Mar 29, 2022 #5 You can also use: [B4X] MiniHtmlParser - simple html parser implemented with B4X Upvote 0
Rubsanpe Active Member Licensed User Longtime User Mar 29, 2022 #6 Hi. If you remove the html you may remove important information such as links or images. try to detect if the email has html tags and then use a webview to show it to the user. Rubén Upvote 0
Hi. If you remove the html you may remove important information such as links or images. try to detect if the email has html tags and then use a webview to show it to the user. Rubén