浏览代码

Fixes encode problem see BT#9288

Julio Montoya 10 年之前
父节点
当前提交
87d1a21af7
共有 1 个文件被更改,包括 2 次插入1 次删除
  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));
 	}
 }