special-html

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

Downloads
41K
Stars
4
Committers
1

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 = 'β”œβ”€β”€ [email protected] ([email protected])'

console.log(special(original))
// ├── [email protected] ([email protected])
Package Rankings
Top 31.99% on Repo1.maven.org
Top 6.69% on Npmjs.org