0.1.0 • Published 9 years ago
deep-escape-html v0.1.0
deep-escape-html
Deeply escape object's string properties for use in HTML. Build on top escape-html.
Example
var escape = require('deep-escape-html')
var html = escape({a: "<script>alert('PWNED')</script>", {b: ['<div></div>', 1, true, false]}})
// -> {a: '<script>alert('PWNED')</script>', {b: ['<div></div>', 1, true, false]}}
License
MIT
0.1.0
9 years ago