From ccf49dd15852020bc0c27834d2ce15fdfc8647fd 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 --- public/lib/table/classes/base_export_format.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/public/lib/table/classes/base_export_format.php b/public/lib/table/classes/base_export_format.php index 35653e4c444..bd50af59b29 100644 --- a/public/lib/table/classes/base_export_format.php +++ b/public/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); }