Can you put a glass in the microwave to heat milk?

I went to put a glass in the microwave the other day and my husband stopped me saying that you can’t put glass in a microwave as the glass will explode. I find it hard to believe that in 7 years of owning a microwave I have never put a glass in there so I am thinking I must of in the past but it didn’t explode. Does anyone know the right answer?