cleanup mixed php and html