properly escape content strings passed into the pre tags in the diff view