Skip to content

Commit

Permalink
Test: Fix Feedback Form Cloze Question
Browse files Browse the repository at this point in the history
  • Loading branch information
kergomard committed Dec 7, 2024
1 parent a42cf83 commit bc9559a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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())
);
}

Expand All @@ -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())
);
}

Expand Down

0 comments on commit bc9559a

Please sign in to comment.