From ec2692a6990568d71b9c684d1f4ea1d76f7a96ca Mon Sep 17 00:00:00 2001 From: tjhunt Date: Fri, 21 Sep 2007 18:28:45 +0000 Subject: [PATCH] MDL-11316 - Extra slashes appearing in the correct answer of shortanswer questions when they contain a slash. Merged from MOODLE_18_STABLE. --- question/type/shortanswer/questiontype.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/question/type/shortanswer/questiontype.php b/question/type/shortanswer/questiontype.php index 797b63b689..5637a30271 100644 --- a/question/type/shortanswer/questiontype.php +++ b/question/type/shortanswer/questiontype.php @@ -382,7 +382,7 @@ class question_shortanswer_qtype extends default_questiontype { // MDL-7496 if ($correctanswer) { echo ('
'); - print_string('correctansweris', 'quiz', s($correctanswer)); + print_string('correctansweris', 'quiz', s($correctanswer, true)); echo ('
'); } } else { @@ -391,7 +391,7 @@ class question_shortanswer_qtype extends default_questiontype { print_string('incorrect', 'quiz'); if ($correctanswer) { echo ('
'); - print_string('correctansweris', 'quiz', s($correctanswer)); + print_string('correctansweris', 'quiz', s($correctanswer, true)); echo ('
'); } } -- 2.39.5