Skip to content

2.4.0

Compare
Choose a tag to compare
@j0k3r j0k3r released this 03 Feb 02:01
· 10 commits to 2.x since this release
897e44c

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