Converts special UTF-8 characters in a string to their HTML escape code equivalents.
With NPM:
$ npm install special-html
Or component:
$ component install hughsk/special-html
var special = require('special-html')
, original = '├── [email protected] ([email protected])'
console.log(special(original))
// ├── [email protected] ([email protected])