Decode HTML entities in equations