createUncheckedHtml function

Element createUncheckedHtml(
  1. String html, {
  2. bool encode = false,
})

Creates an element with an empty tree sanitizer.

Implementation

Element createUncheckedHtml(String html, {bool encode = false}) {

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

  return Element.html(html, treeSanitizer: NodeTreeSanitizer.trusted);
}