NodeValidatorBuilder.common constructor - NodeValidatorBuilder - dart:html library (original) (raw)

NodeValidatorBuilder.common()

Creates a new NodeValidatorBuilder which accepts common constructs.

By default this will accept HTML5 elements and attributes with the defaultUriPolicy and templating elements.

Notable syntax which is filtered:

For scenarios where the HTML should only contain formatted textallowTextElements is more appropriate.

Use allowSvg to allow SVG elements.

Implementation

NodeValidatorBuilder.common() {
  allowHtml5();
  allowTemplating();
}