aboutsummaryrefslogtreecommitdiff
path: root/app/Models/Entry.php
diff options
context:
space:
mode:
authorGravatar FireFingers21 <online+github@alexhuisman.ca> 2023-11-13 11:20:14 -0800
committerGravatar GitHub <noreply@github.com> 2023-11-13 20:20:14 +0100
commitb1d568697ad031a42b478ea6a3316558deaaa7c3 (patch)
treed10c0f40b8b7647c4630913859e76e0df46342a2 /app/Models/Entry.php
parent2b8b80a5a92c4c464c4cc3f67affed8526cdad18 (diff)
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 <alexandre@alapetite.fr> * Update app/Models/Entry.php XHTML --------- Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
Diffstat (limited to 'app/Models/Entry.php')
-rw-r--r--app/Models/Entry.php2
1 files changed, 1 insertions, 1 deletions
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'] ?? '';