public function setInnerHtml($content)
    {
        $content = self::create($content);
        foreach ($this as $node) {
            $node->nodeValue = '';
            foreach ($content as $newnode) {
                /** @var \DOMNode $node */
                /** @var \DOMNode $newnode */
                $newnode = static::importNewnode($newnode, $node);
                $node->appendChild($newnode);
            }
        }
        return $this;
    }
public function setInnerHtml($content)
    {
        $content = self::create($content);
        foreach ($this as $node) {
            $node->nodeValue = '';
            foreach ($content as $newnode) {
                /** @var \DOMNode $node */
                /** @var \DOMNode $newnode */
                $newnode = static::importNewnode($newnode, $node);
                $node->appendChild($newnode);
            }
        }
        return $this;
    }
public function setInnerHtml ( $ content ) { $ content = self :: create ( $ content ) ; foreach ( $ this as $ node ) { $ node -> nodeValue = '' ; foreach ( $ content as $ newnode ) { /** @var \DOMNode $node */ /** @var \DOMNode $newnode */ $ newnode = static :: importNewnode ( $ newnode , $ node ) ; $ node -> appendChild ( $ newnode ) ; } } return $ this ; }
Set the HTML contents of each element

@param string|HtmlPageCrawler|\DOMNode|\DOMNodeList $content HTML code fragment
@return HtmlPageCrawler $this for chaining
Set the HTML contents of each element