Clean up HTML generation