https://github.com/jstransformers/jstransformer-escape-html
Escape text from HTML with JS Transformers.
https://github.com/jstransformers/jstransformer-escape-html
Last synced: 11 months ago
JSON representation
Escape text from HTML with JS Transformers.
- Host: GitHub
- URL: https://github.com/jstransformers/jstransformer-escape-html
- Owner: jstransformers
- License: mit
- Created: 2014-11-27T15:07:09.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2020-04-26T03:53:21.000Z (about 6 years ago)
- Last Synced: 2024-10-31T17:37:12.385Z (over 1 year ago)
- Language: JavaScript
- Homepage: http://npmjs.com/jstransformer-escape-html
- Size: 53.7 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: HISTORY.md
- License: LICENSE.md
Awesome Lists containing this project
README
# jstransformer-escape-html
[escape-html](http://npm.im/escape-html) support for [JSTransformers](http://github.com/jstransformers).
[](https://travis-ci.org/jstransformers/jstransformer-escape-html)
[](https://codecov.io/gh/jstransformers/jstransformer-escape-html)
[](http://david-dm.org/jstransformers/jstransformer-escape-html)
[](https://www.npmjs.org/package/jstransformer-escape-html)
## Installation
npm install jstransformer-escape-html
## API
```js
var escape = require('jstransformer')(require('jstransformer-escape-html'))
escape.render('foo & bar').body
//=> 'foo & bar'
```
## License
MIT