I’m building a GWT Application. But i dont want user to enter any html or javascript. No entry should be interpreted as html or javascript. Could you suggest any java libary that fit my needs?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It’s your responsibility to sanitize user input, but GWT does do a great deal of XSS protection on it’s own. You could do a basic sanitization using GWT’s built in
SimpleHtmlSanitizer.sanitizeHtml(input);