// @@PLUGINFILE@@ with a real URL, but it doesn't matter what.
// We use http://example.com/.
$text = str_replace('@@PLUGINFILE@@/', 'http://example.com/', $question->questiontext);
- return html_to_text(format_text($text,
- $question->questiontextformat, $formatoptions), 0, false);
+ return s(html_to_text(format_text($text,
+ $question->questiontextformat, $formatoptions), 0, false));
}
/**
* 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));
}
}