Added new function to encode in pre tags
Fixed pre tag block for log entry text