MDL-36918 Decode HTML entities on ajax update title

This commit is contained in:
Andrew Robert Nicols
2012-12-10 11:15:50 +13:00
committed by Sam Hemelryk
parent fa9b53cdf8
commit e275e8c3cd
+1 -1
View File
@@ -167,7 +167,7 @@ switch($requestmethod) {
// We need to return strings after they've been through filters for multilang
$stringoptions = new stdClass;
$stringoptions->context = $coursecontext;
echo json_encode(array('instancename' => format_string($module->name, true, $stringoptions)));
echo json_encode(array('instancename' => html_entity_decode(format_string($module->name, true, $stringoptions))));
break;
}
break;