class Hpricot::Attributes

def to_hash

def to_hash
  if @element.raw_attributes
    @element.raw_attributes.inject({}) do |hsh, (k, v)|
      hsh[k] = Hpricot.uxs(v)
      hsh
    end
  else
    {}
  end
end