html-strings

0.0.1 • Public • Published

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);

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i html-strings

      Weekly Downloads

      1

      Version

      0.0.1

      License

      none

      Last publish

      Collaborators

      • gildean