# This patch file was generated by NetBeans IDE
# This patch can be applied using context Tools: Apply Diff Patch action on respective folder.
# It uses platform neutral UTF-8 encoding.
# Above lines and this line are ignored by the patching process.
Index: moodle/grade/lib.php
--- moodle/grade/lib.php Base (1.120.2.32)
+++ moodle/grade/lib.php Locally Modified (Based On 1.120.2.32)
@@ -1217,7 +1217,7 @@
             return $strparams;
         }
 
-        $strparams->itemname = $element['object']->get_name();
+        $strparams->itemname = html_to_text($element['object']->get_name());
 
         // If element name is categorytotal, get the name of the parent category
         if ($strparams->itemname == get_string('categorytotal', 'grades')) {
@@ -1301,6 +1301,7 @@
 
         if ($url) {
             return '<a href="'.$url.'"><img src="'.$CFG->pixpath.'/t/edit.gif" class="iconsmall" alt="'.s($stredit).'" title="'.s($stredit).'"/></a>';
+            //return '<a href="'.$url.'"><img src="'.$CFG->pixpath.'/t/edit.gif" class="iconsmall" alt="'.format_string($stredit).'" title="'.format_string($stredit).'"/></a>';
 
         } else {
             return '';
