Make sure you rinse with hot water ASAP after it happens... pour on some blue dawn and keep it wet until you wash it. I would put it soaking wet in a plastic bag and tie it until I washed as long as it’s not too hot it’ll stay wet in the bag for a couple days.
I'd hand wash with regular hand soap as soon as I could get to it. Mind you, I couldn't quite salvage every article of clothing seeing as I'd have to tend to cleaning the very poopy baby.