Creates a new Whitelist with generated attributes for the
given tags
.
The tags
can be one of the following types:
String
containing a tag name;Iterable<String>
containing tag names;- Matcher.
For each tag that matches tags
, the generator
will be invoked to
generate new attributes if necessary.
If when
is provided, the generator will only be invoked if when
applies. Only if tags
matches will when
be invoked.
Source
Whitelist extraAttributes(dynamic tags, AttributeGenerator generator, {Filter when});