2.4.0
Addition
If you want to extract content from a page you already fetched outside of Graby, you can call setContentAsPrefetched()
before calling fetchContent()
, e.g.:
use Graby\Graby;
$article = 'http://www.bbc.com/news/entertainment-arts-32547474';
$input = '<html>[...]</html>';
$graby = new Graby();
$graby->setContentAsPrefetched($input);
$result = $graby->fetchContent($article);
What's Changed
Full Changelog: 2.3.3...2.4.0