function html_attr_remove($attributes, $name) { $attr = new HTML_Attributes($attributes); return (string) $attr->removeAttribute($name); }
function html_attr_remove_class($attributes, $class) { $attr = new HTML_Attributes($attributes); return (string) $attr->removeClass($class); if (trim($attr->getAttribute('class')) == '') { $attr->removeAttribute('class'); } return (string) $attr; }