diff --git a/main/exercise/exercise.class.php b/main/exercise/exercise.class.php index 864fb4bb67..c1267c25b8 100755 --- a/main/exercise/exercise.class.php +++ b/main/exercise/exercise.class.php @@ -8229,7 +8229,7 @@ class Exercise * * @return string */ - private function getUnformattedTitle() + public function getUnformattedTitle() { return strip_tags(api_html_entity_decode($this->title)); } diff --git a/main/exercise/exercise.php b/main/exercise/exercise.php index c7be05b2ed..1e3c86301b 100644 --- a/main/exercise/exercise.php +++ b/main/exercise/exercise.php @@ -672,7 +672,7 @@ if (!empty($exerciseList)) { $cut_title = $exercise->getCutTitle(); $alt_title = ''; if ($cut_title != $row['title']) { - $alt_title = ' title = "'.$row['title'].'" '; + $alt_title = ' title = "'.$exercise->getUnformattedTitle().'" '; } // Teacher only