SLING-11592 - Fix policy adapter condition chaining and add tests (#30)

* Add tests for the dynamic and global attribute
* Correct the policy adapter so that the conditions are added with an "or" instead of an "and".
* Lowercase Attribute, Property and Tag names after parsing from config
* Extract TestInput Class
* Turn AntiSamyConfigLocale class into a static inner class
* Remove unused imports
11 files changed
tree: 7e0746be7367745dafa593bc70821ad68e660bcb
  1. src/
  2. .gitignore
  3. bnd.bnd
  4. CODE_OF_CONDUCT.md
  5. CONTRIBUTING.md
  6. Jenkinsfile
  7. LICENSE
  8. pom.xml
  9. README.md
README.md

Apache Sling

Build Status Test Status Coverage Sonarcloud Status JavaDoc Maven Central License

Apache Sling XSS Protection

This module is part of the Apache Sling project.

The Apache Sling XSS Bundle provides two services for escaping and filtering XSS-prone user submitted content:

  1. org.apache.sling.xss.XSSAPI
  2. org.apache.sling.xss.XSSFilter

Please check the JavaDoc of each service to find out what methods they provide.