Added html fragment output.

Please clean up if I made a mess.