Clean up duplicate html