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.

Source

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.dartlang.org/stable/1.24.3/dart-html/NodeValidatorBuilder/allowHtml5.html