From fedc27f80e2a8d8e95aad104106c5bd7d7bdee49 Mon Sep 17 00:00:00 2001 From: David Woloszyn Date: Fri, 12 Dec 2025 16:43:38 +1100 Subject: [PATCH] MDL-78342 core_table: Remove line break conversion in format_text --- lib/table/classes/base_export_format.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/table/classes/base_export_format.php b/lib/table/classes/base_export_format.php index 35653e4c444..bd50af59b29 100644 --- a/lib/table/classes/base_export_format.php +++ b/lib/table/classes/base_export_format.php @@ -80,8 +80,6 @@ class base_export_format { * @param null|int $courseid */ public function format_text($text, $format = FORMAT_MOODLE, $options = null, $courseid = null) { - // Use some whitespace to indicate where there was some line spacing. - $text = str_replace(['

', "\n", "\r"], ' ', $text); return html_entity_decode(strip_tags($text), ENT_COMPAT); }