public CleanResults scan(String taintedInput) {
try {
return antiSamy.scan(taintedInput);
} catch (PolicyException pe) {
pe.printStackTrace();
throw new InputValidationException("There was an error with the AntiSamy policy for validating user input");
} catch (ScanException se) {
se.printStackTrace();
throw new InputValidationException("There was an error validating your submission. Please check your input and try again.");
}
}