pQuery\DomNode::createNode PHP Method

createNode() protected method

Create a {@link DomNode} from its string representation.
protected createNode ( string | DomNode $content ) : DomNode
$content string | DomNode
return DomNode
    protected function createNode($content)
    {
        $nodes = $this->createNodes($content);
        return reset($nodes);
    }
DomNode