cleanup HTML code