Skip to content

Latest commit

 

History

History
28 lines (16 loc) · 548 Bytes

README.md

File metadata and controls

28 lines (16 loc) · 548 Bytes

sanitize

sanitize html for safety.

Build Status Coverage Status

Installation

Component install with:

$ component install lepture/sanitize

SPM install with:

$ spm install lepture/sanitize

API

var sanitize = require('sanitize')
var html = sanitize('<script>alert('foo')</script><div>bar</div>')

License

MIT