regent_royal -4 Newbie Poster

I am currently working in one swing application. I need to display html contents in some
window. In swing we are having HTMLEditorPane that can display HTML contents on window (not in browser).
Now this HTML contents is not well structured. like starting and ending with html tag
inside it head tag and body tag etc. It may contain more then one body tags. Now the
problem is to check whole html content and removing unnecessary tags adding some attributes
of tag (like adding some style to p tag). How is it possible to check full html content and
normalize it? If you have any example for it please provide.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.