W3cubDocs

/Dart 2

allowHtml5 method

void allowHtml5 ({UriPolicy uriPolicy })

Allow common safe HTML5 elements and attributes.

This list is based off of the Caja whitelists at: https://code.google.com/p/google-caja/wiki/CajaWhitelists.

Common things which are not allowed are script elements, style attributes and any script handlers.

Implementation

void allowHtml5({UriPolicy uriPolicy}) {
  add(new _Html5NodeValidator(uriPolicy: uriPolicy));
}

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.5.0/dart-html/NodeValidatorBuilder/allowHtml5.html