Refactoring some common html parsers

For example, aria labels may be more useful than in just gmail, but the
parsing that removes the () from inbox may not be.