allowImages method

void allowImages ([UriPolicy uriPolicy ])

Allows image elements.

The UriPolicy can be used to restrict the locations the images may be loaded from. By default this will use the default UriPolicy.

Implementation

void allowImages([UriPolicy uriPolicy]) {
  if (uriPolicy == null) {
    uriPolicy = new UriPolicy();
  }
  add(new _SimpleNodeValidator.allowImages(uriPolicy));
}