We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1cea8e8 commit f7528d3Copy full SHA for f7528d3
classes/output/course_output.php
@@ -313,7 +313,8 @@ protected function temp_course_section_cm_availability($mod) {
313
// If there are multiple restrictions the tooltip on the subtile then shows them all.
314
$ci = new \core_availability\info_module($mod);
315
$fullinfo = $ci->get_full_information();
316
- return \core_availability\info::format_info($fullinfo, $this->course);
+ // We use strip_tags as we display the HTML in a title attribute.
317
+ return strip_tags(\core_availability\info::format_info($fullinfo, $this->course));
318
}
319
$availabilityclass = $this->format->get_output_classname('content\\cm\\availability');
320
$availability = new $availabilityclass(
0 commit comments