public static function fieldName($body, $fieldName, $attr = 'value')
    {
        $crawler = $body instanceof Crawler ? $body : new Crawler((string)$body);

        return $crawler->filterXPath('//input[@name="' . $fieldName . '"]')->attr($attr);
    }