Effective in alleviating heartburn

If a person has a stomach ulcer (that is aggravated by excessive hydrochloric acid {HCl}  secretion ), why on earth would he or she be drinking milk to feel better, when milk is also an acid, pH=6.85? And what chemical(s) is(are) in antacids to make them effective in alleviating “heartburn”?

"Is this question part of your assignment? We can help"