1.0.1 • Published 10 years ago

escape-artist v1.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
10 years ago

escape-artist

It escapes and unescapes HTML entities in strings! Simple, really.

Just require escape-artist after installing via npm:

var escapeArtist = require('escape-artist');

Then use the following functions:

escape()

Escape HTML entities in a string:

escapeArtist.escape('here's a sample string & stuff!');

unescape()

Unescape HTML entities in a string:

escapeArtist.unescape('here's a sample string & stuff!');