Clean up the html code