Does anyone know of anything that is safe to take for severe heartburn when pregnant?

It doesn't matter if I eat. drink, or lie down the heartburn is a killer and very uncomfortable when awoken in the middle of the night!!