Clean up HTML code in main layout template.