Index: report.php =================================================================== RCS file: /cvsroot/moodle/moodle/mod/quiz/report/analysis/report.php,v retrieving revision 1.41.2.2 diff -u -r1.41.2.2 report.php --- report.php 2 Nov 2007 16:21:00 -0000 1.41.2.2 +++ report.php 13 Dec 2007 10:16:31 -0000 @@ -531,7 +531,7 @@ $col = 0; foreach ($headers as $item) { - $myxls->write(2,$col,$item,$formatbc); + $myxls->write(2,$col,html_to_text($item),$formatbc); $col++; } @@ -541,7 +541,7 @@ foreach($rows as $rowdata){ $col = 0; foreach($rowdata as $item){ - $myxls->write($row,$col,$item,$format); + $myxls->write($row,$col,html_to_text($item),$format); $col++; } $row++; @@ -610,7 +610,7 @@ $col = 0; foreach ($headers as $item) { - $myxls->write(2,$col,$item,$formatbc); + $myxls->write(2,$col,html_to_text($item),$formatbc); $col++; } @@ -620,7 +620,7 @@ foreach($rows as $rowdata){ $col = 0; foreach($rowdata as $item){ - $myxls->write($row,$col,$item,$format); + $myxls->write($row,$col,html_to_text($item),$format); $col++; } $row++; @@ -652,13 +652,13 @@ header("Cache-Control: must-revalidate,post-check=0,pre-check=0"); header("Pragma: public"); - echo $text; + echo html_to_text($text); foreach($questions as $q) { $rows = $this->print_row_stats_data($q); foreach($rows as $row){ $text = implode("\t", $row); - echo $text." \n"; + echo html_to_text($text)." \n"; } } exit;