clean the structure of the HTML