attrString = attrs =>
  Object.entries(attrs)
    .map(([key, val]) => validAttr(key) && Object.values(safeAttr(key, val)).join(''))
    .filter(Boolean)
    .join(' ')
Convert an attrs object into a string

@param  {Object} attrs object of attributes for markup
@return {string}