MDL-50283 gradeform_rubric: No need to escape HTML entities
authorDavid Monllao <davidm@moodle.com>
Wed, 24 Jun 2015 03:21:56 +0000 (11:21 +0800)
committerDavid Monllao <davidm@moodle.com>
Wed, 24 Jun 2015 03:21:56 +0000 (11:21 +0800)
grade/grading/form/rubric/js/rubriceditor.js

index 51eb9eb..5304b82 100644 (file)
@@ -227,12 +227,12 @@ M.gradingform_rubriceditor.buttonclick = function(e, confirmed) {
             levelsstr += M.gradingform_rubriceditor.templates[name].level
                             .replace(/\{LEVEL-id\}/g, 'NEWID'+(newlevid+levidx))
                             .replace(/\{LEVEL-score\}/g, levelsscores[levidx])
-                            .replace(/\{LEVEL-definition\}/g, Y.Escape.html(levelsdef[levidx]));
+                            .replace(/\{LEVEL-definition\}/g, levelsdef[levidx]);
         }
         var description = source.one('.description .textvalue');
         var newcriterion = M.gradingform_rubriceditor.templates[name].criterion
                                 .replace(/\{LEVELS\}/, levelsstr)
-                                .replace(/\{CRITERION-description\}/, Y.Escape.html(description.get('innerHTML')));
+                                .replace(/\{CRITERION-description\}/, description.get('innerHTML'));
         parentel.append(newcriterion.replace(/\{CRITERION-id\}/g, 'NEWID'+newid).replace(/\{.+?\}/g, ''));
         M.gradingform_rubriceditor.assignclasses('#rubric-'+name+' #'+name+'-criteria-NEWID'+newid+'-levels .level');
         M.gradingform_rubriceditor.addhandlers();