MDL-78342 core_table: Remove line break conversion in format_text

This commit is contained in:
David Woloszyn
2026-01-19 13:07:19 +11:00
parent 19c8567f01
commit ccf49dd158
@@ -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(['</p>', "\n", "\r"], ' ', $text);
return html_entity_decode(strip_tags($text), ENT_COMPAT);
}