Integration of OWASP JSON Sanitizer and OWASP Java HTML Sanitizer for JAX-RS.
You will need to integrate the Sonatype Maven repositories.
<repository>
<id>sonatype-nexus-snapshots</id>
<name>Sonatype Nexus Snapshots</name>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository
<repository>
<id>sonatype-nexus-releases</id>
<name>Sonatype Nexus Snapshots</name>
<url>https://oss.sonatype.org/content/repositories/releases</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
To use the OWASP JSON Sanitizer with Maven, add the dependency like this:
<dependency>
<groupId>de.sven-torben.jaxrs-owasp-sanitizers</groupId>
<artifactId>json</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>
To use the OWASP HTML Sanitizer with Maven, add the dependency like this:
<dependency>
<groupId>de.sven-torben.jaxrs-owasp-sanitizers</groupId>
<artifactId>html</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>