allowTextElements method - NodeValidatorBuilder class - dart:html library (original) (raw)

description

void allowTextElements()

Allow basic text elements.

This allows a subset of HTML5 elements, specifically just these tags and no attributes.

Implementation

void allowTextElements() {
  add(new _SimpleNodeValidator.allowTextElements());
}