setElementInnerHTML function

void setElementInnerHTML(
  1. Element element,
  2. String html, {
  3. NodeValidator? validator,
})

Sets the inner HTML of element with parsed result of html.

Implementation

void setElementInnerHTML(Element element, String html,
    {NodeValidator? validator}) {
  validator ??= _defaultNodeValidator;
  // ignore: unsafe_html
  element.setInnerHtml(html, validator: validator);
}