From 00246b2b20eda1f8b0587cbc52329bbe117dbcf4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?s=C3=B8renpeter?= Date: Fri, 13 Dec 2024 15:57:23 +0100 Subject: [PATCH] Fixed typo in refresh and added html_entity_decode() to twt parsing --- libs/twtxt.php | 3 +++ partials/timeline.php | 2 +- views/refresh.php | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/libs/twtxt.php b/libs/twtxt.php index 7fd6b70..9eb2003 100644 --- a/libs/twtxt.php +++ b/libs/twtxt.php @@ -506,6 +506,9 @@ function getTwtsFromTwtxtString($url) { $twtContent = str_replace("(#$hash)", '', $twtContent); } + // Convert HTML entities to their corresponding characters + $twtContent = html_entity_decode($twtContent); + // TODO: Make ?tag= filtering feature $twtContent = replaceTagsFromTwt($twtContent); diff --git a/partials/timeline.php b/partials/timeline.php index fb3380d..ca4a666 100644 --- a/partials/timeline.php +++ b/partials/timeline.php @@ -39,7 +39,7 @@ if (isset($_SESSION['password'])) { echo ' | Reply'; - } + } ?> diff --git a/views/refresh.php b/views/refresh.php index 41a10cc..2bd1daa 100644 --- a/views/refresh.php +++ b/views/refresh.php @@ -68,7 +68,7 @@ foreach ($twtFollowingList as $following) { // Javascript for updating the progress bar and information echo "";