public function attributes(array $attributes)
    {
        foreach ($attributes as $attribute => &$data) {
            $data = implode(' ', (array) $data);
            $data = $attribute . '="' . htmlspecialchars($data, ENT_QUOTES, 'UTF-8') . '"';
        }

        return empty($attributes) ? '' : ' ' . implode(' ', $attributes);
    }
public function attributes(array $attributes)
    {
        foreach ($attributes as $attribute => &$data) {
            $data = implode(' ', (array) $data);
            $data = $attribute . '="' . htmlspecialchars($data, ENT_QUOTES, 'UTF-8') . '"';
        }

        return empty($attributes) ? '' : ' ' . implode(' ', $attributes);
    }
public function attributes ( array $ attributes ) { foreach ( $ attributes as $ attribute => & $ data ) { $ data = implode ( ' ' , ( array ) $ data ) ; $ data = $ attribute . '="' . htmlspecialchars ( $ data , ENT_QUOTES , 'UTF-8' ) . '"' ; } return empty ( $ attributes ) ? '' : ' ' . implode ( ' ' , $ attributes ) ; }
Formats tag attributes
@param array $attributes
@return string
Formats tag attributes