simple-sanitizer

0.4.6 • Public • Published

Simple Sanitizer

A small, quick, standalone and effective client side javascript html sanitizer.

A shameless port of ngSanitize to normal javascript, zero dependencies required.

Usage

    var safeHTML = sanitizer.sanitizeHTML(dangerousHTML);

You can also sanitize URIs for images, links etc:

    var safeUri = sanitizer.sanitizeUri(dangerousUri);

License

MIT, see LICENSE for details.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.4.6
    22
    • latest

Version History

Package Sidebar

Install

npm i simple-sanitizer

Weekly Downloads

13

Version

0.4.6

License

MIT

Last publish

Collaborators

  • dortzur