protected function fetchContents($crawler, $container) { $content = $crawler->filter($container); if (!$content->count()) { abort(422); } return html_entity_decode($content->html()); }