浏览代码

A minor correction.

Ivan Tcholakov 14 年之前
父节点
当前提交
b90c301b9b
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      main/exercice/answer.class.php

+ 2 - 2
main/exercice/answer.class.php

@@ -274,8 +274,8 @@ class Answer
 	 			
 	 			//Avoid problems when parsing elements with accents
 	 			if ($decode) {
-	        		$this->answer[$i] 	= html_entity_decode($this->answer[$i], ENT_QUOTES, api_get_system_encoding());
-	        		$this->comment[$i]	= html_entity_decode($this->comment[$i], ENT_QUOTES, api_get_system_encoding());
+	        		$this->answer[$i] 	= api_html_entity_decode($this->answer[$i], ENT_QUOTES, api_get_system_encoding());
+	        		$this->comment[$i]	= api_html_entity_decode($this->comment[$i], ENT_QUOTES, api_get_system_encoding());
 	 			}
 	        	
 	 			$list[] = array(