The wire mesh drops the temperature below ignition temperature and also drops the pressure. Since the outer air remains relatively cool, the mesh presumably continues to shed some heat through contact with the outside air, and so doesn't itself reach the ignition temperature on the outside. Maybe sort of like how you can hold a flame to a paper cup full of water and even though the paper is dry on the outside, it won't catch.
https://en.wikipedia.org/wiki/Flame_arrester
https://en.wikipedia.org/wiki/Davy_lamp
https://www.youtube.com/watch?v=u-GeraWUP6E
The wire mesh drops the temperature below ignition temperature and also drops the pressure. Since the outer air remains relatively cool, the mesh presumably continues to shed some heat through contact with the outside air, and so doesn't itself reach the ignition temperature on the outside. Maybe sort of like how you can hold a flame to a paper cup full of water and even though the paper is dry on the outside, it won't catch.