Movatterモバイル変換


[0]ホーム

URL:


menu
  1. Dart
  2. dart:html
  3. NodeTreeSanitizer class
NodeTreeSanitizer
description

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

hashCodeint
The hash code for this object.
no setterinherited
runtimeTypeType
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.
  1. Dart
  2. dart:html
  3. NodeTreeSanitizer class
dart:html library

[8]ページ先頭

©2009-2025 Movatter.jp