Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/nescalante/htmlsanitize


https://github.com/nescalante/htmlsanitize

Last synced: 20 days ago
JSON representation

Awesome Lists containing this project

README

        

# HTML Sanitize

HTML sanitizer for the browser originally extracted from Angular [`ngSanitize`](https://github.com/angular/angular.js/blob/master/src/ngSanitize/sanitize.js) function

## Install

```
npm install htmlsanitize
```

## Usage

```javascript
const sanitize = require('htmlsanitize');

sanitize('

Hello world!
alert("booh!")') //
Hello world!

```

## License

MIT