I am writing a Servlet which takes input from an html form. I want to be able to detect 3 things:
1) malformed href tags... missing quotation marks, etc
2) unclosed tags... a missing table tag could render the site unreadable
3) undesirable tags. I would rather not allow users to blink their text or to use nasty font colors.
If someone knows of a public class that addresses this problem that would be great. I'm willing to modify something that does 2/3 of the functionality. The second requirement is the most critical.