[](https://maven-badges.herokuapp.com/maven-central/org.jooby/jooby-unbescape)
[](https://javadoc.io/doc/org.jooby/jooby-unbescape/1.5.0)
[](http://jooby.org/doc/unbescape)
# unbescape
Unbescape is a Java library aimed at performing fully-featured and high-performance escape and unescape operations for: ```HTML```, ```JavaScript``` and lot more.
## dependency
```xml
org.jooby
jooby-unbescape
1.5.0
```
## exports
* **html** escaper.
* **js** escaper.
* **json** escaper.
* **css** escaper.
* **uri** escaper.
* **queryParam** escaper.
* **uriFragmentId** escaper.
## usage
```java
{
use(new XSS());
post("/", req -> {
String safeHtml = req.param("text", "html").value();
});
}
```
Nested context are supported by providing multiple encoders:
```java
{
use(new XSS());
post("/", req -> {
String safeHtml = req.param("text", "js", "html", "uri").value();
});
}
```
Encoders run in the order they are provided.