Right now, I'm getting results from PHPQuery as strings and then using DOMDocument to parse the string. Since PHPQuery uses DOMDocument, can I get results from PHPQuery as DOMDocument objects? How do I do this?
Once you get a phpQueryObject
, you can access the DomDocument
with the public function getDOMDocument()
pq('whatever')->getDocument()->getDOMDocument();