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
- Host: GitHub
- URL: https://github.com/bkawk/caja-sanitizer
- Owner: bkawk
- License: mit
- Created: 2017-06-12T01:20:51.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-06-12T12:56:19.000Z (almost 9 years ago)
- Last Synced: 2025-08-01T05:37:03.006Z (8 months ago)
- Language: HTML
- Size: 31.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```
```