MDL-36918 Decode HTML entities on ajax update title
authorAndrew Robert Nicols <andrew.nicols@luns.net.uk>
Mon, 3 Dec 2012 12:18:21 +0000 (12:18 +0000)
committerSam Hemelryk <sam@moodle.com>
Sun, 9 Dec 2012 22:15:07 +0000 (11:15 +1300)
course/rest.php

index 61392ea..c013097 100644 (file)
@@ -170,7 +170,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;
                 }
                 rebuild_course_cache($course->id);