Skip to content

Commit

Permalink
MDL-36918 Decode HTML entities on ajax update title
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Robert Nicols authored and Sam Hemelryk committed Dec 9, 2012
1 parent fa9b53c commit e275e8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion course/rest.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@
// We need to return strings after they've been through filters for multilang // We need to return strings after they've been through filters for multilang
$stringoptions = new stdClass; $stringoptions = new stdClass;
$stringoptions->context = $coursecontext; $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;
} }
break; break;
Expand Down

0 comments on commit e275e8c

Please sign in to comment.