--- loncom/interface/statistics/lonstudentsubmissions.pm 2012/10/12 14:08:42 1.69 +++ loncom/interface/statistics/lonstudentsubmissions.pm 2014/02/03 16:32:34 1.70 @@ -1,6 +1,6 @@ # The LearningOnline Network with CAPA # -# $Id: lonstudentsubmissions.pm,v 1.69 2012/10/12 14:08:42 bisitz Exp $ +# $Id: lonstudentsubmissions.pm,v 1.70 2014/02/03 16:32:34 bisitz Exp $ # # Copyright Michigan State University Board of Trustees # @@ -735,6 +735,14 @@ sub html_non_essay_results { foreach my $original_header (@$headers) { if ($original_header eq 'Time') { push(@values,&Apache::lonlocal::locallocaltime($response->{$original_header})); + } elsif (($original_header eq 'Submission') && + !($resptype =~ /^(radiobutton|option|match|rank)$/)) { + # encode all submissions which have not been encoded above + push(@values,&HTML::Entities::encode($response->{$original_header},'<>&"')); + } elsif (($original_header eq 'Correct') && + ($resptype eq 'radiobutton')) { + # encode foil separators + push(@values,&HTML::Entities::encode($response->{$original_header},'&')); } else { # A normal column push(@values,$response->{$original_header});