0.0.1 • Published 12 years ago
html-strings v0.0.1
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);
0.0.1
12 years ago