Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to verify text is HTML-free

843844Dec 3 2007 — edited Dec 4 2007
This may not be the place, but I'm writing web apps that use JSF so I thought I'd post it here.

I was wondering if there is a library/class that I can use to check that a String is "free" of HTML.

Specifically, I want to make sure that every text and text area field are free of HTML before I store them to the database.

I looked on the Apache site but nothing jumped out at me.

Anyone seen anything like this?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 1 2008
Added on Dec 3 2007
3 comments
78 views