protected function makeTitle($crawler) { $pageTitle = $crawler->filter('head > title')->html(); return "<title>{$pageTitle}</title>"; }