The Sanitize module provide a
SanitizePlugin that provide utilities for input/output sanitization and encoding thanks to OWASP projects.
sanitize.policy configuration property. All default AntiySamy policies are bundled within the module at the classpath’s root.
JSON sanitization uses json-sanitizer.
Encoding for output uses java-encoder.