remove mistaken attributes at html tag