2
0
Fork 0

MOBILE-3958 assign: Remove HTML when treating grade

main
Dani Palou 2022-02-07 08:53:04 +01:00
parent 0fd27feec9
commit 32947cbc4e
1 changed files with 2 additions and 1 deletions

View File

@ -986,7 +986,8 @@ export class AddonModAssignSubmissionComponent implements OnInit, OnDestroy, Can
grades.forEach((grade: CoreGradesFormattedItem) => {
if (!grade.outcomeid && !grade.scaleid) {
const gradeFormatted = grade.gradeformatted || '';
// Clean HTML tags, grade can contain an icon.
const gradeFormatted = CoreTextUtils.cleanTags(grade.gradeformatted || '');
// Not using outcomes or scale, get the numeric grade.
if (this.grade.scale) {
this.grade.gradebookGrade = CoreUtils.formatFloat(