protected function getAttributeValue($fieldId, $attributes)
    {
        /** @var EzInfoCollectionAttribute $attribute */
        foreach ($attributes as $attribute) {

            if ($fieldId === $attribute->getContentClassAttributeId()) {
                $value = $attribute->getValue();
                $value = str_replace('"', '""', $value);
                $value = str_replace(';', ', ', $value);
                $value = strip_tags($value);

                return preg_replace(array( '/\r|\n/' ), array( ' ' ), $value);

            }
        }

        return '';
    }