From b1d568697ad031a42b478ea6a3316558deaaa7c3 Mon Sep 17 00:00:00 2001 From: FireFingers21 Date: Mon, 13 Nov 2023 11:20:14 -0800 Subject: Fix newlines not always displaying properly in description (#5859) * Fix newlines not displaying properly * Add name to credits * Restore enclosure-description class Co-authored-by: Alexandre Alapetite * Update app/Models/Entry.php XHTML --------- Co-authored-by: Alexandre Alapetite --- app/Models/Entry.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/Models') diff --git a/app/Models/Entry.php b/app/Models/Entry.php index 3e9cee4e2..249f607ee 100644 --- a/app/Models/Entry.php +++ b/app/Models/Entry.php @@ -185,7 +185,7 @@ HTML; continue; } $credit = $enclosure['credit'] ?? ''; - $description = $enclosure['description'] ?? ''; + $description = nl2br($enclosure['description'] ?? '', true); $length = $enclosure['length'] ?? 0; $medium = $enclosure['medium'] ?? ''; $mime = $enclosure['type'] ?? ''; -- cgit v1.2.3