{
  "name": "sanitizer",
  "description": "Caja's HTML Sanitizer as a Node.js module",
  "version": "0.1.1",
  "author": {
    "name": "Ben Smawfield",
    "email": "bensmawfield@googlemail.com"
  },
  "homepage": "http://github.com/theSmaw/Caja-HTML-Sanitizer",
  "bugs": {
    "url": "http://github.com/theSmaw/Caja-HTML-Sanitizer/issues"
  },
  "licenses": [
    {
      "type": "Apache",
      "url": "http://www.apache.org/licenses/LICENSE-2.0.html"
    }
  ],
  "main": "./sanitizer.js",
  "repository": {
    "type": "git",
    "url": "http://github.com/theSmaw/Caja-HTML-Sanitizer.git"
  },
  "devDependencies": {
    "mocha": "1.13.0"
  },
  "readme": "== Installation\n\nnpm install sanitizer\n\n\n== Require\n\nvar sanitizer = require('sanitizer');\n\n\n== Use\n\nSee /test/test-sanitzer.js for full documentation.\n\nsanitizer.escape('your dirty string'); // Escapes HTML special characters in attribute values as HTML entities\n\nvar yourParser = sanitizer.makeSaxParser(yourHandler); // Given a SAX-like event handler, produce a function that feeds those events and a parameter to the event handler.\n\nsanitizer.normalizeRCData('your dirty string'); // Escape entities in RCDATA that can be escaped without changing the meaning.\n\nsanitizer.sanitize('your dirty string'); // Strips unsafe tags and attributes from html.\n\nexports.unescapeEntities('your string'); // The plain text of a chunk of HTML CDATA which possibly containing.\n\n== Caveats\n\nIt's use this at your own risk really - Caja HTML Sanitizer was written by people far cleverer than me. I have just repackaged it to solve a problem I had (sanitization on a Node server). It seems to work, and it passes all its tests in re-packaged form - however I don't fully understand its internals so cannot guarantee its security.\n\n\n== More information\n\nhttp://code.google.com/p/google-caja/source/browse/trunk/src/com/google/caja/plugin/html-sanitizer.js\n",
  "readmeFilename": "README.rdoc",
  "_id": "sanitizer@0.1.1",
  "dist": {
    "shasum": "de6d01f20bb9164db45e5fe324a56979e337876f"
  },
  "_from": "sanitizer@",
  "_resolved": "https://registry.npmjs.org/sanitizer/-/sanitizer-0.1.1.tgz"
}
