if (!empty($quizid)) {
echo '<p class="quemodname">'.get_string('modulename', 'quiz') . ': ';
- p($quiz->name);
+ p(format_string($quiz->name));
echo "</p>\n";
}
$number = 1;
echo '</div>';
echo '</form>';
print_footer();
-?>
\ No newline at end of file
+?>
// answers per question, each with different marks and feedback.
$answer = new stdClass();
$answer->id = $subquestion->code;
- $answer->answer = $subquestion->answertext;
+ $answer->answer = format_string($subquestion->answertext);
$answer->fraction = 1.0;
$state->options->subquestions[$key]->options
->answers[$subquestion->code] = clone($answer);