From 4616ea67476eb021f822e666ecf81870a05cdd54 Mon Sep 17 00:00:00 2001 From: Stephan Kergomard Date: Mon, 27 Jul 2026 17:43:27 +0200 Subject: [PATCH] Test: Allow Pictures as Data in Feedback See: https://mantis.ilias.de/view.php?id=47955 --- .../classes/feedback/class.ilAssQuestionFeedback.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/components/ILIAS/TestQuestionPool/classes/feedback/class.ilAssQuestionFeedback.php b/components/ILIAS/TestQuestionPool/classes/feedback/class.ilAssQuestionFeedback.php index db0d24a19960..3b3c0dd606d6 100755 --- a/components/ILIAS/TestQuestionPool/classes/feedback/class.ilAssQuestionFeedback.php +++ b/components/ILIAS/TestQuestionPool/classes/feedback/class.ilAssQuestionFeedback.php @@ -255,6 +255,10 @@ final protected function buildFeedbackContentFormProperty(string $label, string $property->setUseRte(true); $property->setRteTags(ilObjAdvancedEditing::_getUsedHTMLTags("assessment")); $property->setRTESupport($this->questionOBJ->getId(), "qpl", "assessment"); + $property->usePurifier(true); + $property->setPurifier( + $this->questionOBJ->getHtmlQuestionContentPurifier() + ); } else { $property->setRteTags(ilAssSelfAssessmentQuestionFormatter::getSelfAssessmentTags()); $property->setUseTagsForRteOnly(false);