function html_attr_has_class($attributes, $class) { $attr = new HTML_Attributes($attributes); return $attr->hasClass($class); }