From 4e5695a11837a62b499ad49c3a8ee10cb1261115 Mon Sep 17 00:00:00 2001 From: Kima Date: Wed, 24 Jan 2024 19:40:31 +0100 Subject: [PATCH] added escapehtml to grade tile as well --- filcnaplo/lib/ui/widgets/grade/grade_tile.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/filcnaplo/lib/ui/widgets/grade/grade_tile.dart b/filcnaplo/lib/ui/widgets/grade/grade_tile.dart index 5f91b65..4699781 100644 --- a/filcnaplo/lib/ui/widgets/grade/grade_tile.dart +++ b/filcnaplo/lib/ui/widgets/grade/grade_tile.dart @@ -35,9 +35,9 @@ class GradeTile extends StatelessWidget { bool isSubjectView = SubjectGradesContainer.of(context) != null || viewOverride; String subjectName = - grade.subject.renamedTo ?? grade.subject.name.capital(); - String modeDescription = grade.mode.description.capital(); - String description = grade.description.capital(); + grade.subject.renamedTo ?? grade.subject.name.escapeHtml().capital(); + String modeDescription = grade.mode.description.escapeHtml().capital(); + String description = grade.description.escapeHtml().capital(); GradeCalculatorProvider calculatorProvider = Provider.of(context, listen: false);