MDL-62820 question import: properly escape output

This commit is contained in:
Tim Hunt
2018-07-04 15:41:05 +08:00
committed by Jun Pataleta
parent eeefdaebcf
commit 9dd7b0f7f4
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -945,8 +945,8 @@ class qformat_default {
* during import to let the user see roughly what is going on.
*/
protected function format_question_text($question) {
return question_utils::to_plain_text($question->questiontext,
$question->questiontextformat);
return s(question_utils::to_plain_text($question->questiontext,
$question->questiontextformat));
}
}