preserve classes on hmtl element