An open API service indexing awesome lists of open source software.

https://github.com/bkawk/caja-sanitizer

A polymer 2.0 component that sanitizes html and css
https://github.com/bkawk/caja-sanitizer

Last synced: about 1 month ago
JSON representation

A polymer 2.0 component that sanitizes html and css

Awesome Lists containing this project

README

          

# \

## Import the sanitizer
``````

## Insert the Element

```

```

## Call the sanitizer
The response will be a promise
```
const dirtyString = "

Hello, World!

"
this.$.cajaSanitizer.sanitize(dirtyString)
.then((sanitized) => {
console.debug(sanitized)
})
.catch((err) => {
console.error(err)
})
```

## Pass to the sanitizer

```

```