hi,i needed help for html stripping,the codes that I have doesn't work.Can someone show me an example with source codes for html stripping or recommend me some useful websites.Thanks!Please reply as soon as possible.
- Posted by: Vivian Richardson
- Posted on: July 21 2005 03:07 EDT
I can tell you a simple method to do it though, I have tried it myself sometime.
You can use something like tidy or the javax.swing.text.html.HTMLEditorKit to make the HTML valid, then the job is very simple, iterate thourgh the nodes to extract what you want.
Hope this helps.