protected function renderAttributes(array $attributes)
    {
        foreach ($attributes as $name => $value) {
            if (is_array($value)) {
                $value = implode(' ', (array) $value);
            }
            $attributes[$name] = $name . '="' . htmlspecialchars($value, ENT_QUOTES, 'UTF-8') . '"';
        }

        return implode(' ', $attributes);
    }
protected function renderAttributes(array $attributes)
    {
        foreach ($attributes as $name => $value) {
            if (is_array($value)) {
                $value = implode(' ', (array) $value);
            }
            $attributes[$name] = $name . '="' . htmlspecialchars($value, ENT_QUOTES, 'UTF-8') . '"';
        }

        return implode(' ', $attributes);
    }
protected function renderAttributes ( array $ attributes ) { foreach ( $ attributes as $ name => $ value ) { if ( is_array ( $ value ) ) { $ value = implode ( ' ' , ( array ) $ value ) ; } $ attributes [ $ name ] = $ name . '="' . htmlspecialchars ( $ value , ENT_QUOTES , 'UTF-8' ) . '"' ; } return implode ( ' ' , $ attributes ) ; }
Renders the given attributes.

@param array $attributes The attributes.

@return string The rendered attributes.
Renders the given attributes .