Defines the rules for what tags, attribute names and attribute values are allowed in a piece of HTML.
Static Properties
- basic → Whitelist
-
Allow only basic text tags.
read-only - basicWithImages → Whitelist
-
Allow only basic text tags and the image tag.
read-only - none → Whitelist
-
No tags allowed, only text nodes.
read-only - simpleText → Whitelist
-
Allow only simple text tags.
read-only
Properties
- cleaner → Cleaner
-
Returns a Cleaner that applies the rules of this Whitelist on DocumentFragments
read-only - hashCode → int
-
Get a hash code for this object.
read-only, inherited - runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Operators
-
operator ==(
other) → bool -
The equality operator.
inherited
Methods
-
attributes(
tags, attributes, { Filter when }) → Whitelist -
Creates a new Whitelist with additional allowed
attributes
for the giventags
that will be copied from the source. -
extraAttributes(
tags, AttributeGenerator generator, { Filter when }) → Whitelist -
Creates a new Whitelist with generated attributes for the given
tags
. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited -
safeCopy(
String contents) → String -
Returns a safe copy of the
contents
after applying the rules of this Whitelist. -
Creates a new Whitelist with additional allowed
tags
. -
toString(
) → String -
Returns a string representation of this object.
inherited