ember-cli-sanitize-html
Version:
Wrapper for Sanitize HTML to help clean up unwanted html tags
49 lines (35 loc) • 2.24 kB
Markdown
[](http://emberobserver.com/addons/ember-cli-sanitize-html)
[](http://travis-ci.org/devotox/ember-cli-sanitize-html)
[](https://codecov.io/gh/devotox/ember-cli-sanitize-html)
[](http://badge.fury.io/js/ember-cli-sanitize-html)
[](https://www.npmjs.org/package/ember-cli-sanitize-html)
[](https://david-dm.org/poetic/ember-cli-sanitize-html)
[](https://david-dm.org/poetic/ember-cli-sanitize-html#info=devDependencies)
[](https://greenkeeper.io/)
ember-cli-sanitize-html
==============================================================================
A wrapper around the [sanitize-html](https://github.com/punkave/sanitize-html/) library for use in ember-cli projects
[DEMO](https://devotox.github.io/ember-cli-sanitize-html)
Installation
------------------------------------------------------------------------------
```
ember install ember-cli-sanitize-html
```
Usage
------------------------------------------------------------------------------
### Component
```handlebars
{{sanitize-html raw=<true|false>[default=false] value="YOUR HTML" options=options}}
```
```javascript
import sanitizeHtml from 'ember-cli-sanitize-html'
sanitizeHtml('YOUR HTML', options)
```
### Available options
See original library [sanitize-html](https://github.com/punkave/sanitize-html/)
Contributing
------------------------------------------------------------------------------
See the [Contributing](CONTRIBUTING.md) guide for details.
License
------------------------------------------------------------------------------
This project is licensed under the [MIT License](LICENSE.md).