0.1.1 • Published 9 years ago

unxss v0.1.1

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

unXSS

=========

Library to provide utility methods to escape and unescape HTML entitiesand save you from XSS attacks.

Installation

npm install unxss --save

Usage

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

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

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

Tests

npm test

###License

MIT

0.1.1

9 years ago

0.1.0

9 years ago