@mkazlauskas/dom-purify

Simple commponent that uses the DOMPurify library to sanitize it's content.

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
@mkazlauskas/dom-purify
Minified + gzip package size for @mkazlauskas/dom-purify in KB

Readme

dom-purify

Simple component that uses the awesome DOMPurify library to sanitize it's content. Build with Polymer ^1.0.0.

This repository also includes the dom-purify-behavior that can be used to use html sanitize in other elements.

Docs & Demo

See the component page for more information.

Configure DOMPurify

The component (or better, the dom-purify-behavior) has a property called sanitizeOptions. Use it to forward DOMPurify's configuration.

How to install

Clone this repository or use bower:

bower install pkaske/dom-purify --save

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.