diff --git a/questionnaire.class.php b/questionnaire.class.php
index 5fd3bebe..63d52010 100644
--- a/questionnaire.class.php
+++ b/questionnaire.class.php
@@ -2105,7 +2105,7 @@ private function send_submission_notifications($rid) {
$info->name = format_string($this->name);
$info->submissionurl = $CFG->wwwroot.'/mod/questionnaire/report.php?action=vresp&sid='.$this->survey->id.
'&rid='.$rid.'&instance='.$this->id;
- $info->coursename = $this->course->fullname;
+ $info->coursename = format_string($this->course->fullname);
$info->postsubject = get_string('submissionnotificationsubject', 'questionnaire');
$info->posttext = get_string($langstringtext, 'questionnaire', $info);
@@ -2210,8 +2210,8 @@ private function get_full_submission_for_notifications($rid) {
$responses = $this->get_full_submission_for_export($rid);
$message = '';
foreach ($responses as $response) {
- $message .= html_to_text($response->questionname) . "
\n";
- $message .= get_string('question') . ': ' . html_to_text($response->questiontext) . "
\n";
+ $message .= html_to_text(format_string($response->questionname)) . "
\n";
+ $message .= get_string('question') . ': ' . html_to_text(format_string($response->questiontext)) . "
\n";
$message .= get_string('answers', 'questionnaire') . ":
\n";
foreach ($response->answers as $answer) {
$message .= html_to_text($answer) . "
\n";