diff --git a/course/format/templates/local/overview/activityname.mustache b/course/format/templates/local/overview/activityname.mustache index 5f05b8c628b..746587e0624 100644 --- a/course/format/templates/local/overview/activityname.mustache +++ b/course/format/templates/local/overview/activityname.mustache @@ -30,7 +30,7 @@ }}
- {{activityname}} + {{{activityname}}}
{{#sectiontitle}}
diff --git a/course/tests/behat/course_overview.feature b/course/tests/behat/course_overview.feature index 638609591e2..ed3823134a6 100644 --- a/course/tests/behat/course_overview.feature +++ b/course/tests/behat/course_overview.feature @@ -301,3 +301,15 @@ Feature: Users can access the course activities overview page And I should see "-" in the "Activity 2" "table_row" When I am on the "Course 1" "course > activities > lesson" page logged in as "teacher1" And I should not see "Grade" in the "lesson_overview_collapsible" "region" + + Scenario: Activities name is properly filtered and rendered + Given the following config values are set as admin: + | formatstringstriptags | 0 | + And the following "activity" exists: + | activity | assign | + | course | C1 | + | section | 1 | + | idnumber | mathjax | + | name | Announcements$$(a+b)=2$$$$(a+b)=2$$ | + When I am on the "Course 1" "course > activities > assign" page logged in as "teacher1" + Then I should not see "span" in the "assign_overview_collapsible" "region"