Permalink
Browse files

MDL-36918 Decode HTML entities on ajax update title

  • Loading branch information...
andrewnicols authored and Sam Hemelryk committed Dec 3, 2012
1 parent fa9b53c commit e275e8c3cd71e016f4e1e35564645dd98dac49f0
Showing with 1 addition and 1 deletion.
  1. +1 −1 course/rest.php
View
@@ -167,7 +167,7 @@
// 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;

0 comments on commit e275e8c

Please sign in to comment.