appendElementInnerHTML function

void appendElementInnerHTML(
  1. HTMLElement element,
  2. String html, {
  3. @Deprecated("`NodeValidator` not implemented on package `web`") Object? validator,
  4. bool unsafe = false,
})

Appends to the inner HTML of element with parsed result of html.

Implementation

void appendElementInnerHTML(HTMLElement element, String html,
    {@Deprecated("`NodeValidator` not implemented on package `web`")
    Object? validator,
    bool unsafe = false}) {
  element.insertAdjacentHTML("beforeend", html.toJS);
}