Diarrhea and breastfeeding

What medicine is safe to take while breastfeeding and having diarrhea?