Details
Description
In item analysis, incorrect responses at short answer questions are displayed with slashes before quotes (see attachment).
To get rid of this I did:
— mod/quiz/report/analysis/report.php ORIGINAL
+++ mod/quiz/report/analysis/report.php MODIFIED
@@ -332,6 +332,7 @@
} else
+ $resp = s($resp, TRUE); // line added to get rid of slashes
$response->credit = '<span class="'.$qclass.'">('.format_float($q['credits'][$aid],2).') </span>';
$response->text = '<span class="'.$qclass.'">'.format_text("$resp", FORMAT_MOODLE, $format_options, $quiz->course).' </span>';
$count = $q['rcounts'][$aid].'/'.$q['count'];