private function HtmlAttributes($attributes)
    {
        $formatted = join(' ', array_map(function ($key) use ($attributes) {
            if (is_bool($attributes[$key])) {
                return $attributes[$key] ? $key : '';
            }
            return $key . '="' . $attributes[$key] . '"';
        }, array_keys($attributes)));
        return $formatted;
    }
private function HtmlAttributes($attributes)
    {
        $formatted = join(' ', array_map(function ($key) use ($attributes) {
            if (is_bool($attributes[$key])) {
                return $attributes[$key] ? $key : '';
            }
            return $key . '="' . $attributes[$key] . '"';
        }, array_keys($attributes)));
        return $formatted;
    }
private function HtmlAttributes ( $ attributes ) { $ formatted = join ( ' ' , array_map ( function ( $ key ) use ( $ attributes ) { if ( is_bool ( $ attributes [ $ key ] ) ) { return $ attributes [ $ key ] ? $ key : '' ; } return $ key . '="' . $ attributes [ $ key ] . '"' ; } , array_keys ( $ attributes ) ) ) ; return $ formatted ; }
Return attributes in html format

@param  array $attributes
@return string
Return attributes in html format