[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.
Source
/**
* 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].
*/
void allowImages([UriPolicy uriPolicy]) {
if (uriPolicy == null) {
uriPolicy = new UriPolicy();
}
add(new _SimpleNodeValidator.allowImages(uriPolicy));
}