1
0
mirror of https://github.com/moodle/moodle.git synced 2025-04-25 10:26:17 +02:00
This commit is contained in:
Sara Arjona 2024-04-04 17:02:51 +02:00
commit 744c1c8a5a
No known key found for this signature in database

@ -209,7 +209,7 @@ class availability implements named_templatable, renderable {
$text = info::format_info($availabilityinfo, $course);
$data = ['text' => $text];
if (strlen(html_to_text($text)) > self::AVAILABILITY_EXCERPT_MAXSIZE) {
if (strlen(html_to_text($text, 0, false)) > self::AVAILABILITY_EXCERPT_MAXSIZE) {
$data['excerpt'] = shorten_text($text, self::AVAILABILITY_EXCERPT_MAXSIZE);
}