Remove Mango worms and Make puppy happy

Where ever this stuff is happening, the officials need to adopt legislation to protect animals. Free spay and neutering. Shelters to house unwanted animals and feed them properly. These poor animals have been discarded by the society they live in. It’s just too horrendous to go on like this.

I’m assuming these maggots are eating the animals flesh. My question is, how do these animals live with this disgusting situation? And what would the preventative measures be.