use a dictionary based approach because html entities cannot go into the title attribute and display properly to the user