Researchers at Stanford University created a lithium-ion battery that contains a chemical compound which prevents both the fires and explosions that sometimes occur when the battery overheats.
http://www.notebookcheck.net/Researchers-create-a-battery-with-built-in-fire-extinguisher.191938.0.html