Heartburn

I’m 20 weeks pregnant and tonight I have very bad heartburn. What can I take that is safe? Or what helps you when you have heartburn?