Avoiding trigger foods like alcohol, chocolate, and spicy foods helps prevent heartburn. Chewing gum might help clear stomach acid from your esophagus. Elevating your head keeps stomach acid from ...