diff --git a/main/forum/forumfunction.inc.php b/main/forum/forumfunction.inc.php index e4eda4a64a..d052b63e8b 100644 --- a/main/forum/forumfunction.inc.php +++ b/main/forum/forumfunction.inc.php @@ -3162,7 +3162,7 @@ function prepare4display($input='') { } $counter = 0; foreach ($search_terms as $key=>$search_term) { - $input = str_replace(trim(api_html_entity_decode($search_term)),''.trim(html_entity_decode($search_term)).'',$input); + $input = str_replace(trim(api_html_entity_decode($search_term)),''.trim(api_html_entity_decode($search_term)).'',$input); $counter++; } } @@ -3172,7 +3172,7 @@ function prepare4display($input='') { { $returnarray[$key]=stripslashes($value); }*/ - $returnarray=array_walk($input, 'html_entity_decode'); + $returnarray=array_walk($input, 'api_html_entity_decode'); $returnarray=array_walk($input, 'stripslashes'); return $returnarray; } diff --git a/main/gradebook/gradebook_result.class.php b/main/gradebook/gradebook_result.class.php index 795e3f4a62..d532dbb012 100644 --- a/main/gradebook/gradebook_result.class.php +++ b/main/gradebook/gradebook_result.class.php @@ -212,7 +212,7 @@ class GradeBookResult foreach ($dato[0] as $header_col) { if(!empty($header_col)) { - $data .= str_replace("\r\n",' ',html_entity_decode(strip_tags($header_col))).';'; + $data .= str_replace("\r\n",' ',api_html_entity_decode(strip_tags($header_col))).';'; } } @@ -223,7 +223,7 @@ class GradeBookResult for($i=0;$i<$cant_students;$i++) { $column = 0; foreach($dato[1][$i] as $col_name) { - $data .= str_replace("\r\n",' ',html_entity_decode(strip_tags($col_name))).';'; + $data .= str_replace("\r\n",' ',api_html_entity_decode(strip_tags($col_name))).';'; } $data .="\r\n"; } @@ -288,4 +288,4 @@ class GradeBookResult } endif; -?> \ No newline at end of file +?> diff --git a/main/newscorm/openoffice_presentation.class.php b/main/newscorm/openoffice_presentation.class.php index 8d94e15668..94e398e24e 100644 --- a/main/newscorm/openoffice_presentation.class.php +++ b/main/newscorm/openoffice_presentation.class.php @@ -50,7 +50,7 @@ class OpenofficePresentation extends OpenofficeDocument { $slide_name = api_htmlentities($slide_name,ENT_COMPAT,$this->original_charset); $slide_name = str_replace('’','\'',$slide_name); $slide_name = api_convert_encoding($slide_name, api_get_setting('platform_charset'), $this->original_charset); - $slide_name = html_entity_decode($slide_name, ENT_COMPAT, api_get_setting('platform_charset')); + $slide_name = api_html_entity_decode($slide_name, ENT_COMPAT, api_get_setting('platform_charset')); if($this->take_slide_name === true) { diff --git a/main/social/index.php b/main/social/index.php index 75f36e935d..4915f0de06 100755 --- a/main/social/index.php +++ b/main/social/index.php @@ -466,7 +466,7 @@ Display :: display_header(''); if (isset($_GET['sendform'])) { $form_reply=array(); $form_reply[]=urlencode($_POST['title']); - $form_reply[]=urlencode(html_entity_decode($_POST['content'])); + $form_reply[]=urlencode(api_html_entity_decode($_POST['content'])); $form_reply[]=$_POST['user_list']; $form_reply[]=$_POST['re_id']; $form_reply[]=urlencode($_POST['compose']); @@ -515,4 +515,4 @@ $form_url_send=isset($form_send_data_message) ? $form_send_data_message :''; \ No newline at end of file +?> diff --git a/main/survey/survey.lib.php b/main/survey/survey.lib.php index 1dc7d9003d..ebe6030b8c 100644 --- a/main/survey/survey.lib.php +++ b/main/survey/survey.lib.php @@ -24,7 +24,7 @@ * @package dokeos.survey * @author Patrick Cool , Ghent University: cleanup, refactoring and rewriting large parts (if not all) of the code @author Julio Montoya Armas , Dokeos: Personality Test modification and rewriting large parts of the code -* @version $Id: survey.lib.php 20610 2009-05-13 21:53:48Z cvargas1 $ +* @version $Id: survey.lib.php 20717 2009-05-16 10:32:10Z ivantcholakov $ * * @todo move this file to inc/lib * @todo use consistent naming for the functions (save vs store for instance) @@ -1848,7 +1848,7 @@ class personality extends question $this->html .= ' '; $this->html .= ' '; //$this->html .= ' '; - $this->html .= ' '.api_return_html_area('answers['.$key.']', html_entity_decode(stripslashes($form_content['answers'][$key]))).''; + $this->html .= ' '.api_return_html_area('answers['.$key.']', api_html_entity_decode(stripslashes($form_content['answers'][$key]))).''; $this->html .= ' '; if ($total_number_of_answers> 2)