Przeglądaj źródła

Fixes encode problem see BT#9288

Julio Montoya 10 lat temu
rodzic
commit
87d1a21af7
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2 1
      main/gradebook/lib/be/surveylink.class.php

+ 2 - 1
main/gradebook/lib/be/surveylink.class.php

@@ -266,6 +266,7 @@ class SurveyLink extends AbstractLink
 
 	private static function html_to_text($string)
 	{
-		return trim(api_html_entity_decode(strip_tags(str_ireplace(array('<p>', '</p>', '<br />', '<br/>', '<br>'), array('', ' ', ' ', ' ', ' '), $string)), ENT_QUOTES));
+		return strip_tags($string);
+		//return trim(api_html_entity_decode(strip_tags(str_ireplace(array('<p>', '</p>', '<br />', '<br/>', '<br>'), array('', ' ', ' ', ' ', ' '), $string)), ENT_QUOTES));
 	}
 }