OWASP Java HTML Sanitizer/Roadmap

From OWASP
Jump to: navigation, search

We are currently at Alpha right now - but will be production ready and soon.

Sample programmatic policy example:

        // A VERY SIMPLE WHITELISTING POLICY
       final ImmutableSet<String> okTags = ImmutableSet.of(
           "a", "b", "br", "div", "i", "img", "input", "li",
           "ol", "p", "span", "ul");
       final ImmutableSet<String> okAttrs = ImmutableSet.of(
           "div", "checked", "class", "href", "id", "target", "title", "type");