You can burn it cleanly, at sufficiently high temperatures. In the nordic countries, this heat is then going into city-wide central heating networks, meaning it substitutes natural gas or electricity for domestic heating.
Can you fuel such a fire with only the trash? Or do we need to supplement with other fossil fuels?