From e275e8c3cd71e016f4e1e35564645dd98dac49f0 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;