0.0.1 • Published 12 years ago

html-strings v0.0.1

Weekly downloads
4
License
-
Repository
-
Last release
12 years ago

html-strings

Escape and unescape HTML-strings.

Usage

Install module from npm:

npm install html-strings

Require and use:

var htmlStr = require('html-strings');
var escape = htmlStr.escape;
var unescape = htmlStr.unescape;

var someString = '<script type="text/javascript">&&</script>';

var escapedStr = escape(someString);
var unescapedStr = unescape(escapedStr);