# @mkazlauskas/dom-purify

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

Latest version **2.5.2** (published 2018-08-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install @mkazlauskas/dom-purify
pnpm add @mkazlauskas/dom-purify
yarn add @mkazlauskas/dom-purify
bun add @mkazlauskas/dom-purify
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.5.2 |
| Published | 2018-08-21 |
| First published | 2018-08-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 19.3 KB |
| Known vulnerabilities | 0 (+25 in 1 direct dependencies) |
| Install scripts | no |
| Maintainers | mkazlauskas |
| Keywords | web-component, web-components, polymer, html, sanitize, security |

## Links

- npm: https://www.npmjs.com/package/@mkazlauskas/dom-purify
- Homepage: https://github.com/pkaske/dom-purify/
- npm.io page: https://npm.io/package/@mkazlauskas/dom-purify

## Dependencies (2)

- [dompurify](https://npm.io/package/dompurify.md) ^1.0.7
- [@polymer/polymer](https://npm.io/package/@polymer/polymer.md) ^3.0.0

## Alternatives

- [@tsparticles/shape-image](https://npm.io/package/@tsparticles/shape-image.md) — 303.7K weekly downloads
- [@tsparticles/shape-line](https://npm.io/package/@tsparticles/shape-line.md) — 233.7K weekly downloads
- [stringify-attributes](https://npm.io/package/stringify-attributes.md) — 58.6K weekly downloads
- [mobile-drag-drop](https://npm.io/package/mobile-drag-drop.md) — 46.3K weekly downloads
- [@comunica/actor-rdf-parse-html](https://npm.io/package/@comunica/actor-rdf-parse-html.md) — 29.2K weekly downloads

## Recent versions

- 2.5.2 (latest) — 2018-08-21
- 2.5.1 — 2018-08-09

## README

# dom-purify
Simple component that uses the awesome [DOMPurify](https://github.com/cure53/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](http://pkaske.github.io/dom-purify) for more information.

## Configure DOMPurify

The component (or better, the `dom-purify-behavior`) has a property called `sanitizeOptions`.
Use it to forward [DOMPurify](https://github.com/cure53/DOMPurify)'s configuration.

## How to install

Clone this repository or use bower:

`bower install pkaske/dom-purify --save`

---
_Source: https://npm.io/package/@mkazlauskas/dom-purify · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
