1.0.0 • Published 9 years ago

safeson v1.0.0

Weekly downloads
468
License
MIT
Repository
github
Last release
9 years ago

safeson

Convert JSON to something you can safely embed in HTML

Install

You can get it on npm.

npm install safeson --save

Usage

safeson(data, spaces?)

Takes data, turns it into JSON, and strips away HTML hazards

safeson.decode(data)

Takes data previously encoded with safeson and unescapes it, then turns it into an object

License

MIT