name | mode | size |
---|---|---|
README.md | 100644 | 0 kb |
html-sanitizer.asd | 100644 | 0 kb |
html-sanitizer.fasl | 100644 | 10 kb |
html-sanitizer.lisp | 100644 | 4 kb |
package.lisp | 100644 | 0 kb |
# (insert clever name here)
A whitelist-based cleaner for html5 in Common Lisp. It removes any
elements or attributes that don't match a whitelist and then dumps the
result as a string. In order to deal with Microsoft conditionals, we
also strip out all the comments. We depend on
[plump](https://github.com/Shinmera/plump) to handle html parsing, but
we extend it so with a HTML-compatible serialization mode that
prevents certain elements from self-closing.
Enhancements and security fixes welcome.