W3cubDocs

/Dart 2

NodeValidator constructor

NodeValidator({UriPolicy uriPolicy })

Construct a default NodeValidator which only accepts whitelisted HTML5 elements and attributes.

If a uriPolicy is not specified then the default uriPolicy will be used.

Implementation

factory NodeValidator({UriPolicy uriPolicy}) =>
    new _Html5NodeValidator(uriPolicy: uriPolicy);

© 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/NodeValidator/NodeValidator.html