0.1.0 • Published 9 years ago

escapein v0.1.0

Weekly downloads
1
License
-
Repository
github
Last release
9 years ago

Escapein

A minimal node module providing utility methods to escape and unescape HTML entities

Installation

  npm install scapegoat --save

Usage

  var scapegoat = require('scapegoat')
      escape = scapegoat.escape,
      unescape = scapegoat.unescape;

  var html = '<h1>Hello World</h1>',
      escaped = escape(html),
      unescaped = unescape(escaped);

  console.log('html', html, 'escaped', escaped, 'unescaped', unescaped);

Tests

   npm test