Converts special UTF-8 characters in a string to their HTML escape code equivalents.
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
test
.gitignore
.travis.yml
Makefile
README.md
component.json
index.js
package.json

README.md

special-html Build Status

Converts special UTF-8 characters in a string to their HTML escape code equivalents.

Installation

With NPM:

$ npm install special-html

Or component:

$ component install hughsk/special-html

Usage

var special = require('special-html')
  , original = '├── http-browserify@0.1.6 (concat-stream@0.0.8)'

console.log(special(original))
// ├── http-browserify@0.1.6 (concat-stream@0.0.8)