html.entities: minor refactor for clarity.