Permalink
Browse files

MDL-36918 Decode HTML entities on ajax update title

  • Loading branch information...
1 parent 532577b commit 0c7f5928195968694c76a09afa09b410e2f31203 @andrewnicols andrewnicols committed with Sam Hemelryk Dec 3, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 course/rest.php
View
@@ -170,7 +170,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;
}
rebuild_course_cache($course->id);

0 comments on commit 0c7f592

Please sign in to comment.