insertAdjacentHTML

external fun insertAdjacentHTML(position: InsertPosition, string: TrustedHTML)(source)
external fun insertAdjacentHTML(position: InsertPosition, string: String)(source)

The insertAdjacentHTML() method of the Element interface parses the specified input as HTML or XML and inserts the resulting nodes into the DOM tree at a specified position.

MDN Reference