diff --git a/main/newscorm/learnpath.class.php b/main/newscorm/learnpath.class.php index 9801add1aa..5ab7871612 100644 --- a/main/newscorm/learnpath.class.php +++ b/main/newscorm/learnpath.class.php @@ -4664,7 +4664,8 @@ class learnpath { $title=''; for($i = 0; $i < count($arrLP); $i++) { - $title = addslashes($arrLP[$i]['title']); + //$title = addslashes(($arrLP[$i]['title'])); + $title = utf8_decode(html_entity_decode(addslashes($arrLP[$i]['title']),ENT_QUOTES,$this->encoding)); $menu_page = api_get_self() . '?cidReq=' . $_GET['cidReq'] . '&action=view_item&id=' . $arrLP[$i]['id'] . '&lp_id=' . $_SESSION['oLP']->lp_id; $icon_name = str_replace(' ', '', $arrLP[$i]['item_type']); if (file_exists("../img/lp_" . $icon_name . ".png")) @@ -4902,7 +4903,7 @@ class learnpath { $row['title'] = utf8_decode($row['title']); } - $return .= '

' . stripslashes($row['title']) . '

'; + $return .= '

' . $title = utf8_decode(html_entity_decode(stripslashes($row['title']),ENT_QUOTES,$this->encoding)) . '

'; //$return .= '

' . ((trim($row['description']) == '') ? 'no description' : stripslashes($row['description'])) . '

'; //$return .= '
';