Fixed html output of document content.