Element.replaceWith

Element replaceWith(Element e)

Replaces this element with something else in the tree.