Soluble fiber (guar gum) is an indigestible form of sugar that is mostly contained in fruits and vegetables. Soluble fiber can reduce the severity and duration of persistent (constant) diarrhea in children.