From ca44b68828e45535f98a7b4e12ad85a56fcca376 Mon Sep 17 00:00:00 2001
From: Jonas Heinrich <onny@project-insanity.org>
Date: Sat, 6 Feb 2021 13:34:38 +0100
Subject: [PATCH] show view:filter line breaks in episode description

---
 CHANGELOG.md             | 2 ++
 appinfo/info.xml         | 2 +-
 src/components/Table.vue | 4 +++-
 3 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index e97ee60..4569af6 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,6 +5,8 @@
   [#115](https://git.project-insanity.org/onny/nextcloud-app-podcast/-/issues/115) @onny
 - Tested and enabled support for Nextcloud 21
   [#126](https://git.project-insanity.org/onny/nextcloud-app-podcast/-/issues/126) @onny
+- Tested and enabled support for PHP8
+  [#130](https://git.project-insanity.org/onny/nextcloud-app-podcast/-/issues/130) @onny
 
 ### Fixed
 - Player: Display correct position while seeking
diff --git a/appinfo/info.xml b/appinfo/info.xml
index eb989ea..2b797e7 100644
--- a/appinfo/info.xml
+++ b/appinfo/info.xml
@@ -26,7 +26,7 @@
     <screenshot small-thumbnail="https://git.project-insanity.org/onny/nextcloud-app-podcast/raw/master/dist/screenshot-thumbnail2.jpg">https://git.project-insanity.org/onny/nextcloud-app-podcast/raw/master/dist/screenshot2.png</screenshot>
     <screenshot small-thumbnail="https://git.project-insanity.org/onny/nextcloud-app-podcast/raw/master/dist/screenshot-thumbnail3.jpg">https://git.project-insanity.org/onny/nextcloud-app-podcast/raw/master/dist/screenshot3.png</screenshot>
     <dependencies>
-        <php min-version="7.4" max-version="7.4" />
+        <php min-version="7.4" max-version="8" />
         <nextcloud min-version="20" max-version="21"/>
     </dependencies>
     <navigations>
diff --git a/src/components/Table.vue b/src/components/Table.vue
index 3150ae4..60a4ad4 100644
--- a/src/components/Table.vue
+++ b/src/components/Table.vue
@@ -158,7 +158,9 @@ export default {
 			}
 		},
 		escapedEpisodeDescription(episodeDescription) {
-			episodeDescription = episodeDescription.replace(/\n/g, '')
+			episodeDescription = episodeDescription
+				.replace(/\n/g, '')
+				.replace('<br />', '')
 			return episodeDescription
 		},
 		readableDate(datetime) {
-- 
GitLab