A helper for HTML string sanitization based on Google Caja
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
LICENSE
README.md
package.json
sanitizer.plugin.js

README.md

Docpad Sanitizer Plugin

A helper for HTML string sanitization based on Google Caja

Overview

This injects a helper object sanitizer into the templateData so you can use it like:

sanitizer.sanitize("string with unsafe tags and attributes")

For full list, refer https://github.com/theSmaw/Caja-HTML-Sanitizer