Improved table markup security fix