Fix HTML entity table generation