clean up html tag assignments