Explorar el Código

Fixes encode problem see BT#9288

Julio Montoya hace 10 años
padre
commit
87d1a21af7
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  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));
 	}
 }