# ng2-sanitize

> Sanitize html with typescript for angular 2.

Latest version **0.0.5** (published 2016-09-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install ng2-sanitize
pnpm add ng2-sanitize
yarn add ng2-sanitize
bun add ng2-sanitize
```

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.5 |
| Published | 2016-09-16 |
| First published | 2016-08-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | François-Xavier Montigny |
| Maintainers | fxmontigny |
| Keywords | ng2, angular2, angular cli, sanitize, typescript |

## Links

- npm: https://www.npmjs.com/package/ng2-sanitize
- Repository: https://github.com/fxmontigny/ng2-sanitize
- Homepage: https://github.com/fxmontigny/ng2-sanitize#readme
- Issues: https://github.com/fxmontigny/ng2-sanitize/issues
- npm.io page: https://npm.io/package/ng2-sanitize

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 0.0.5 (latest) — 2016-09-16
- 0.0.4 — 2016-09-15
- 0.0.3 — 2016-09-15
- 0.0.2 — 2016-08-22
- 0.0.1 — 2016-08-22

## README

# ng2-sanitize

[![npm version](https://badge.fury.io/js/ng2-sanitize.svg)](https://www.npmjs.com/package/ng2-sanitize) 
Sanitize html integration with typescript for angular 2.

# Install
`npm i -s ng2-sanitize`

# Sample Usage

```js
import { SanitizeHtml, SanitizeResourceUrl, SanitizeScript, SanitizeStyle, SanitizeUrl } from 'ng2-sanitize';

@Component({
  template: `
  <div [innerHTML]="html | sanitizeHtml"></div>
  `
})
export class MyComponent {
    text:html = "<b>Welcome</b>";
}
```

# Used by
[caravel.design](https://www.caravel.design)

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