Question: I have some emails whose content is in html format and I want to save in database in readable format any inputs.

Also i have got emails dumped in a text file and i need to extract data from it.Any inputs .All in java

Answer: 
[This page](http://www.rgagnon.com/javadetails/java-0424.html) describes three ways to extract the data

* using a regular expression
* using [HTMLEditorKit](http://download.oracle.com/javase/1,5.0/docs/api/javax/swing/text/html/HTMLEditorKit.html) included in Swing
* using an HTML parser library like [JSoup](http://jsoup.org/)

which one is best for you is for you to decide, an important consideration will be the dependencies it adds to your application - eg if you already have a desktop application a Swing dependency will probably not hurt, whereas in a server application this might not be the best possible idea.
HTML ***is*** a "readable" format. But if you're looking for something to abstract away the HTML-isms, there are several libraries you can look at. [jsoup](http://jsoup.org/) is one example. Mostly the keywords to look for here are "DOM", "HTML parser", and "XSS prevention".