setUncheckedInnerHtml function

void setUncheckedInnerHtml(
  1. Element element,
  2. String html, {
  3. bool encode = false,
})

Set inner html with an empty tree sanitizer

Implementation

void setUncheckedInnerHtml(Element element, String html,
  {bool encode = false}) {

  if (encode) html = XmlUtil.encodeNS(html);

  element.setInnerHtml(html, treeSanitizer: NodeTreeSanitizer.trusted);
}