NodeTreeSanitizer classabstract
Performs sanitization of a node tree after construction to ensure that itdoes not contain any disallowed elements or attributes.
In general custom implementations of this class should not be necessary andall validation customization should be done in custom NodeValidators, butcustom implementations of this class can be created to perform more complextree sanitization.
Constructors
- NodeTreeSanitizer(NodeValidatorvalidator)
- Constructs a default tree sanitizer which will remove all elements andattributes which are not allowed by the provided validator.factory
Properties
- hashCode→int
- The hash code for this object.no setterinherited
- runtimeType→Type
- A representation of the runtime type of the object.no setterinherited
Methods
- noSuchMethod(
Invocationinvocation)→ dynamic - Invoked when a nonexistent method or property is accessed.inherited
- sanitizeTree(
Nodenode)→ void - Called with the root of the tree which is to be sanitized.
- toString(
)→String - A string representation of this object.inherited
Operators
- operator ==(
Objectother)→bool - The equality operator.inherited
Constants
- trusted→ const _TrustedHtmlTreeSanitizer
- A sanitizer for trees that we trust. It does no validation and allowsany elements. It is also more efficient, since it can pass the textdirectly through to the underlying APIs without creating a documentfragment to be sanitized.