From c6b4a16884bfa75bafccbfa42b74a687f4e2320a Mon Sep 17 00:00:00 2001 From: tjhunt Date: Fri, 21 Sep 2007 18:28:31 +0000 Subject: [PATCH] MDL-11316 - Extra slashes appearing in the correct answer of shortanswer questions when they contain a slash. --- 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 aea9bbfa4bb..364c1afb7ac 100644 --- a/question/type/shortanswer/questiontype.php +++ b/question/type/shortanswer/questiontype.php @@ -378,7 +378,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 { @@ -387,7 +387,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 ('
'); } }