Merge branch 'MDL-40481' of git://github.com/timhunt/moodle
[moodle.git] / mod / quiz / report / responses / responses_table.php
index 6dc1268..8d2a5ac 100644 (file)
@@ -103,6 +103,11 @@ class quiz_responses_table extends quiz_attempts_report_table {
             $summary = trim($value);
         }
 
+        if ($this->is_downloading() && $this->is_downloading() != 'xhtml') {
+            return $summary;
+        }
+        $summary = s($summary);
+
         if ($this->is_downloading() || $field != 'responsesummary') {
             return $summary;
         }