A ratiometric fluorescent nanoprobe for H2O2 sensing and in vivo detection of drug-induced oxidative damage to the digestive system.