Removing bad markup