Once inside the body, the tapeworm head attaches to the inner wall of the intestines and feeds off the food being digested. Pieces of the tapeworm break off and come out of the body in feces (poop), along with the eggs they contain.