Closed pjonker closed 8 months ago
After incorporating htmlspecialchars_decode into the get_section_name function, it now functions properly.
public function get_section_name($section) {
if (!is_object($section)) {
$section = $this->get_section($section);
}
if ((string)$section->name !== '') {
// return format_string($section->name, true, ['context' => context_course::instance($this->courseid)]);
return htmlspecialchars_decode(format_string($section->name, true, ['context' => context_course::instance($this->courseid)]));
} else {
return $this->get_default_section_name($section);
}
}
Thank you, this was fixed in version 4.0.6
Client uses the '&' sign in the name of a section. Within that section there is an activity. When you enter that activity you get the 'Back to [section name]' link. Within that link the '&' sign shows as '&'.
This has been tested on several Moodle sites and always gives the same issue.