FluentDOM\Nodes\Builder::getContentElement PHP Method

getContentElement() public method

Convert $content to a DOMElement. If $content contains several elements use the first.
public getContentElement ( mixed $content ) : DOMElement
$content mixed
return DOMElement
    public function getContentElement($content)
    {
        $contentNodes = $this->getContentNodes($content, FALSE, 1);
        return $contentNodes[0];
    }