Complex sentence: They are wonderful with children and other pets, such as cats, are safe unless a potcake is put with other dogs.
Split into simpler sentences: They are wonderful with children and other pets, such as cats. The cats are safe unless a potcake is put with other dogs.