unwrap

Removes this node from the DOM, and moves its children up into the node’s parent. This has the effect of dropping the node but keeping its children.

Node.swift:546
@discardableResult func unwrap() throws -> Node?

For example, with the input html:

{@code

One Two Three
}

Calling {@code element.unwrap()} on the {@code span} element will result in the html:

{@code

One Two Three
}

and the {@code "Two "} {@link TextNode} being returned.
<return>
<see>
<see>