public function unwrap()
    {
        $parents = array();
        foreach($this as $i => $node) {
            $parents[] = $node->parentNode;
        }

        self::create($parents)->unwrapInner();
        return $this;
    }
public function unwrap()
    {
        $parents = array();
        foreach($this as $i => $node) {
            $parents[] = $node->parentNode;
        }

        self::create($parents)->unwrapInner();
        return $this;
    }
public function unwrap ( ) { $ parents = array ( ) ; foreach ( $ this as $ i => $ node ) { $ parents [ ] = $ node -> parentNode ; } self :: create ( $ parents ) -> unwrapInner ( ) ; return $ this ; }
Remove the parents of the set of matched elements from the DOM, leaving the matched elements in their place.

@return \Wa72\HtmlPageDom\HtmlPageCrawler $this for chaining
@api
Remove the parents of the set of matched elements from the DOM leaving the matched elements in their place .