outerHTML

external var outerHTML: HtmlSource(source)

The outerHTML attribute of the Element interface gets or sets the HTML or XML markup of the element and its descendants, omitting any shadow roots in both cases.

MDN Reference