diff --git a/components/ILIAS/Test/classes/class.ilTestPlayerAbstractGUI.php b/components/ILIAS/Test/classes/class.ilTestPlayerAbstractGUI.php index f3a03fa28a82..aa5dfa2319cc 100755 --- a/components/ILIAS/Test/classes/class.ilTestPlayerAbstractGUI.php +++ b/components/ILIAS/Test/classes/class.ilTestPlayerAbstractGUI.php @@ -3239,8 +3239,12 @@ protected function getTestPlayerTitle(): string // this is a placeholder solution with inline html tags to differentiate the different elements // should be removed when a title component with grouping and visual weighting is available // see: https://github.com/ILIAS-eLearning/ILIAS/pull/7311 - $pax_name_value = "" - . $this->user->getFullname() . ""; + $pax_name_value = $this->ui_factory->legacy( + sprintf( + "%s", + $this->refinery->encode()->htmlSpecialCharsAsEntities()->transform($this->user->getFullname()) + ) + ); $title_content = $title_content->withProperty($pax_name_label, $pax_name_value, false); }