Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/hughsk/special-html
- Owner: hughsk
- Created: 2012-12-22T03:30:49.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2012-12-29T01:49:45.000Z (almost 12 years ago)
- Last Synced: 2024-10-17T16:39:18.274Z (22 days ago)
- Language: JavaScript
- Size: 105 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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])
```