Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hughsk/special-html

Converts special UTF-8 characters in a string to their HTML escape code equivalents.
https://github.com/hughsk/special-html

Last synced: 12 days ago
JSON representation

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

Awesome Lists containing this project

README

        

# special-html [![Build Status](https://travis-ci.org/hughsk/special-html.png?branch=master)](https://travis-ci.org/hughsk/special-html)

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

## Installation

With [NPM](http://npmjs.org):

``` bash
$ npm install special-html
```

Or [component](/component/component):

``` bash
$ component install hughsk/special-html
```

## Usage

``` javascript
var special = require('special-html')
, original = '├── [email protected] ([email protected])'

console.log(special(original))
// ├── [email protected] ([email protected])
```