From bc9559a1dd25338c0c8e119db940f5e384fe253d Mon Sep 17 00:00:00 2001 From: Stephan Kergomard Date: Sat, 7 Dec 2024 16:39:32 +0100 Subject: [PATCH] Test: Fix Feedback Form Cloze Question --- .../classes/feedback/class.ilAssClozeTestFeedback.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Modules/TestQuestionPool/classes/feedback/class.ilAssClozeTestFeedback.php b/Modules/TestQuestionPool/classes/feedback/class.ilAssClozeTestFeedback.php index ec31cffc2bd1..0c8c25b210c4 100644 --- a/Modules/TestQuestionPool/classes/feedback/class.ilAssClozeTestFeedback.php +++ b/Modules/TestQuestionPool/classes/feedback/class.ilAssClozeTestFeedback.php @@ -62,7 +62,7 @@ protected function buildGapFeedbackLabel(int $gapIndex, assClozeGap $gap): strin $answers = []; foreach ($gap->getItems($this->randomGroup()->dontShuffle()) as $item) { - $answers[] = '"' . $item->getAnswertext() . '"'; + $answers[] = '"' . ilLegacyFormElementsUtil::prepareFormOutput($item->getAnswertext()) . '"'; } $answers = implode(' / ', $answers); @@ -79,7 +79,7 @@ protected function buildTextGapGivenAnswerFeedbackLabel(int $gapIndex, assAnswer return sprintf( $this->lng->txt('ass_cloze_gap_fb_txt_match_label'), $gapIndex + 1, - $item->getAnswertext() + ilLegacyFormElementsUtil::prepareFormOutput($item->getAnswertext()) ); } @@ -98,7 +98,7 @@ protected function buildSelectGapOptionFeedbackLabel(int $gapIndex, assAnswerClo return sprintf( $this->lng->txt('ass_cloze_gap_fb_sel_opt_label'), $gapIndex + 1, - $item->getAnswertext() + ilLegacyFormElementsUtil::prepareFormOutput($item->getAnswertext()) ); }