function html_attr_set($attributes, $name, $value = null) { $attr = new HTML_Attributes($attributes); return (string) $attr->setAttribute($name, $value); }