Discussions

EJB design: Needed help for html stripping

  1. Needed help for html stripping (1 messages)

    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.
  2. 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.

    Rakesh.