allowHtml5 method

void allowHtml5({
  1. UriPolicy? uriPolicy,
})

Allow common safe HTML5 elements and attributes.

This list is based off of the Caja whitelists at:

Implementation

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