Quartz will transmit UV from 180 nm to 400 nm. The glass that is transparent to visible light absorbs nearly all UVB hence UV lights can't pass through it hence one can not get sunburn from light coming through the glass.