function attribute ($el, attr) {
  switch (attr) {
    case 'html':
      return $el.html()
    case 'text':
      return $el.text()
    default:
      return $el.attr(attr)
  }
}
Select the attribute based on `attr`

@param {Cheerio} $
@param {String} attr
@return {String}