src/SimpleXMLElement.php
public function appendChildFromHtmlString($html)
    {
        $dom = new \DOMDocument;
        $dom->loadHTML($html);

        $element = simplexml_import_dom($dom);
        $element = current($element->xPath('//body/*'));

        $this->appendChildNode($element);
    }
public function appendChildFromHtmlString($html)
    {
        $dom = new \DOMDocument;
        $dom->loadHTML($html);

        $element = simplexml_import_dom($dom);
        $element = current($element->xPath('//body/*'));

        $this->appendChildNode($element);
    }
public function appendChildFromHtmlString ( $ html ) { $ dom = new \ DOMDocument ; $ dom -> loadHTML ( $ html ) ; $ element = simplexml_import_dom ( $ dom ) ; $ element = current ( $ element -> xPath ( '//body/*' ) ) ; $ this -> appendChildNode ( $ element ) ; }
Append a childelement from a well formed html string.

@param string a html string
@access public
@return void
Append a childelement from a well formed html string .