public static function attribs($attribs, $leading_space = true)
    {
        if (!Arr::iterable($attribs)) {
            return '';
        }
        
        $out = array();
        foreach ($attribs as $k => $v) {
            $v = (is_array($v)) ? join(' ', $v) : $v;
            $out[] = $k . '="' . str_replace('"', '\"', $v) . '"';
        }
        return (($leading_space) ? ' ' : '') . join(' ', $out);
    }