Fix exercise title when save_titles_as_html is enabled - refs BT#14409

pull/2573/head
Angel Fernando Quiroz Campos 8 years ago
parent a09ed1e961
commit dbc0ff4c9d
  1. 2
      main/exercise/exercise.class.php
  2. 2
      main/exercise/exercise.php

@ -8229,7 +8229,7 @@ class Exercise
*
* @return string
*/
private function getUnformattedTitle()
public function getUnformattedTitle()
{
return strip_tags(api_html_entity_decode($this->title));
}

@ -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

Loading…
Cancel
Save