MDL-49364 quiz statistics: escape output in the response analysis
[moodle.git] / mod / quiz / report / statistics / statistics_question_table.php
index 2545ffe..bd89942 100644 (file)
@@ -177,6 +177,8 @@ class quiz_statistics_question_table extends flexible_table {
             } else {
                 return 0;
             }
+        } else if ($colname == 'part' || $colname == 'responseclass' || $colname == 'response') {
+            return s($response->$colname);
         } else {
             return null;
         }