diff --git a/mod/feedback/classes/responses_table.php b/mod/feedback/classes/responses_table.php index 383a3226d3034..663c3c54f3616 100644 --- a/mod/feedback/classes/responses_table.php +++ b/mod/feedback/classes/responses_table.php @@ -194,7 +194,11 @@ public function other_cols($column, $row) { if (preg_match('/^val(\d+)$/', $column, $matches)) { $items = $this->feedbackstructure->get_items(); $itemobj = feedback_get_item_class($items[$matches[1]]->typ); - return trim($itemobj->get_printval($items[$matches[1]], (object) ['value' => $row->$column] )); + $printval = $itemobj->get_printval($items[$matches[1]], (object) ['value' => $row->$column]); + if ($this->is_downloading()) { + $printval = html_entity_decode($printval, ENT_QUOTES); + } + return trim($printval); } return $row->$column; }