WebsiteParser::find_content_image
Searches in the xpath and gets the images from the body. After that, the method sorts the images after their size and returns the path of the biggest image in the set.
Signature
public function find_content_image(DOMXPath
$xpathObject,
string
$url )
Parameters
$xpathObject
— object
$url
— string
Returns
- string
- the src path of the image