Typedefs

AddAttribute(String name, String value) → void

Adds an attribute with the given name and value to the current tag.

AttributeGenerator(String tag, Map<String, String> originalAttributes, AddAttribute adder) → void

Invokes the adder to generate attributes for the given tag.

Filter(String tag, Map<String, String> attributes) → bool

Returns true if the given tag and attributes are accepted.

Matcher(String name) → bool

Returns true if the given name matches.

Properties

always Filter

Always returns true.

read-only
anyAttribute Matcher

Matches all attributes.

read-only
anyTag Matcher

Matches all tags.

read-only

Functions

forceAttribute(String name, String value) AttributeGenerator

Returns an AttributeGenerator that generates an attribute with the given name and value.

Classes

Cleaner

Generates a DocumentFragment by applying the rules from the Whitelist that created this cleaner to the Node given.

Whitelist

Defines the rules for what tags, attribute names and attribute values are allowed in a piece of HTML.