How to convert text/html to plain text?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Robert_Shostak
Posted On:   Thursday, January 16, 2003 02:52 PM

I'm developing a JavaMail client that displays received messages on a pager screen. Is there a way to parse up received text/html content and convert it to relatively readable plain text using the JavaMail API (or, for that matter, any other Java API's)?

Re: How to convert text/html to plain text?

Posted By:   James_Bayer  
Posted On:   Thursday, January 16, 2003 03:23 PM

this is would be lucky if it works, but perhaps you can rendor it using http://java.sun.com/j2se/1.3/docs/api/javax/swing/JEditorPane.html and then use getText()? i haven't tried it, but it's someplace to start.
About | Sitemap | Contact