forked from firka/student-legacy
added escapehtml to grade tile as well
This commit is contained in:
parent
da62b1bfa9
commit
4e5695a118
@ -35,9 +35,9 @@ class GradeTile extends StatelessWidget {
|
|||||||
bool isSubjectView =
|
bool isSubjectView =
|
||||||
SubjectGradesContainer.of(context) != null || viewOverride;
|
SubjectGradesContainer.of(context) != null || viewOverride;
|
||||||
String subjectName =
|
String subjectName =
|
||||||
grade.subject.renamedTo ?? grade.subject.name.capital();
|
grade.subject.renamedTo ?? grade.subject.name.escapeHtml().capital();
|
||||||
String modeDescription = grade.mode.description.capital();
|
String modeDescription = grade.mode.description.escapeHtml().capital();
|
||||||
String description = grade.description.capital();
|
String description = grade.description.escapeHtml().capital();
|
||||||
|
|
||||||
GradeCalculatorProvider calculatorProvider =
|
GradeCalculatorProvider calculatorProvider =
|
||||||
Provider.of<GradeCalculatorProvider>(context, listen: false);
|
Provider.of<GradeCalculatorProvider>(context, listen: false);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user