It depends on the white fabric and if the stain is set in or not.
Some fabrics can take chlorine bleach and that should to the trick.
Shout in its gel form is another good stain remover, as I have used
this to remove cherry juice stains from a white dress shirt. If the
stain is small and even if the care label says not to use chlorine
bleach, you still might be able to remove the stain with the bleach
and then rinsing it off before laundering. (Test this out first)
You can always pretreat the stain with a stain remover product and
then launder it with a good dose of Oxy-Clean along with your
detergent. If the stain is set in by going through a dryer, you’ll
have to carefully resort to chlorine bleach.

An old solution for this is to mix 1/4 cup of clorox with 1/4 cup
of powdered Cascade in a bowl or bucket of hot water. When it is
completely mixed, add the clothing. Let it sit for 15 minutes and
then wash the clothing — do not add the mix to the washing machine
since you want to stop the action. I’ve had good success with this.