A black hole takes in mass, compresses it to a density and temperature approaching infinity in the singularity.
Until we get a final quantization of gravity, we do not know what is happening at the singularity. Our observations go only up to the event horizon .
It then re-emits this as Hawking Radiation consisting of photons.
This is a misunderstanding of the Hawking mechanism of the black hole losing mass. The particles emitted are at the event horizon, and quantum numbers and energy are conserved, the energy needed for the escaping partner given by the gravitational field of the black hole. And this is a very slow process.
Does this mean that there is a high enough temperature/density where the Quarks and Electrons will lose their mass and decay into photons?
At the present mainstream physics, quantum numbers are conserved, and quark+antiquark can turn into photons only if their quantum numbers add up to zero, i.e.quark antiquark annihilation. This can happen if the plasma temperature is high enough, but individual quarks, electrons, neutrinos, cannot turn into photons, from quantum number conservation.