Apache Sling XSS Bundle
The Apache Sling XSS Bundle provides two services for escaping and filtering XSS-prone user submitted content:
- org.apache.sling.xss.XSSAPI
- org.apache.sling.xss.XSSFilter
Please check the JavaDoc of each service to find out what methods they provide.