Harmful Foods to Avoid. Include food high in pectin in your diet, like bananas, applesauce, and yogurt. Do not eat food that causes gas, such as carbonated beverages and chewing gum. Eat food rich in potassium, such as sports drinks, fruit juices, bananas, and potatoes without the skin. This helps cover loss of potassium through diarrhea.