trusted constant

_TrustedHtmlTreeSanitizer const trusted

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.dart.dev/stable/2.13.0/dart-html/NodeTreeSanitizer/trusted-constant.html