In addition to being the same as a gutted/reshelled glow plug, it is also a very small light bulb.
All three work on the same principle, current passes through a thin wire (coil), heats it up, end result is heat and light.
I'm not sure why you would want to use a glow plug, they are...