mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 02:16:41 +02:00
MDL-11316 - Extra slashes appearing in the correct answer of shortanswer questions when they contain a slash.
This commit is contained in:
parent
f5446711d2
commit
c6b4a16884
1 changed files with 2 additions and 2 deletions
|
@ -378,7 +378,7 @@ class question_shortanswer_qtype extends default_questiontype {
|
|||
// MDL-7496
|
||||
if ($correctanswer) {
|
||||
echo ('<div class="correctness">');
|
||||
print_string('correctansweris', 'quiz', s($correctanswer));
|
||||
print_string('correctansweris', 'quiz', s($correctanswer, true));
|
||||
echo ('</div>');
|
||||
}
|
||||
} else {
|
||||
|
@ -387,7 +387,7 @@ class question_shortanswer_qtype extends default_questiontype {
|
|||
print_string('incorrect', 'quiz');
|
||||
if ($correctanswer) {
|
||||
echo ('<div class="correctness">');
|
||||
print_string('correctansweris', 'quiz', s($correctanswer));
|
||||
print_string('correctansweris', 'quiz', s($correctanswer, true));
|
||||
echo ('</div>');
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue