public static function element($name, $content = '', $attributes = null)
{
$short = array('img', 'input', 'br', 'hr', 'frame', 'area', 'base', 'basefont', 'col', 'isindex', 'link', 'meta', 'param');
if (in_array($name, $short)) {
if ($content) {
$attributes['value'] = $content;
}
return '<' . $name . static::attributes($attributes) . '>';
}
return '<' . $name . static::attributes($attributes) . '>' . $content . '</' . $name . '>';
}