From 7e61737f3dbbf8a63225a11b38067a2ff448c151 Mon Sep 17 00:00:00 2001 From: Andrew Robert Nicols Date: Mon, 3 Dec 2012 12:18:21 +0000 Subject: [PATCH] MDL-36918 Decode HTML entities on ajax update title --- course/rest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/course/rest.php b/course/rest.php index 12371f8a8ae..e4ecce2ee31 100644 --- a/course/rest.php +++ b/course/rest.php @@ -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;