W3cubDocs

/Dart 2

trusted constant

_TrustedHtmlTreeSanitizer const trusted = const _TrustedHtmlTreeSanitizer()

A sanitizer for trees that we trust. It does no validation and allows any elements. It is also more efficient, since it can pass the text directly through to the underlying APIs without creating a document fragment to be sanitized.

Implementation

static const trusted = const _TrustedHtmlTreeSanitizer()

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/2.0.0/dart-html/NodeTreeSanitizer/trusted-constant.html