Clean up HTML validation errors