allowInlineStyles method

void allowInlineStyles({String tagName })

Allow inline styles on elements.

If tagName is not specified then this allows inline styles on all elements. Otherwise tagName limits the styles to the specified elements.

Source

void allowInlineStyles({String tagName}) {
  if (tagName == null) {
    tagName = '*';
  } else {
    tagName = tagName.toUpperCase();
  }
  add(new _SimpleNodeValidator(null, allowedAttributes: ['$tagName::style']));
}

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/1.24.3/dart-html/NodeValidatorBuilder/allowInlineStyles.html