Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class CrawlerUtil
- {
- public static function html(\Symfony\Component\DomCrawler\Crawler $crawler)
- {
- if (!count($crawler)) {
- return null;
- }
- return $crawler->html();
- }
- }
- // $a = $safeCrawler->html();
- // $b = CrawlerUtil::html($crawler);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement