From c42d6db8cd736cfdadde9e9810aff79b34f0d9b6 Mon Sep 17 00:00:00 2001
From: Jonas Kohl
Date: Thu, 19 Sep 2024 16:34:10 +0200
Subject: Fix escaping in search results
---
src/application/views/view_search_results.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'src/application/views/view_search_results.php')
diff --git a/src/application/views/view_search_results.php b/src/application/views/view_search_results.php
index 914d2b2..55af213 100644
--- a/src/application/views/view_search_results.php
+++ b/src/application/views/view_search_results.php
@@ -16,7 +16,7 @@ use mystic\forum\utils\StringUtils;
- = htmlentities(StringUtils::truncate(strip_tags(renderPost($post->content)), 100)) ?>
+ = htmlentities(html_entity_decode(StringUtils::truncate(strip_tags(renderPost($post->content)), 100))) ?>
= __("posted by %author% on %post_date% in %topic%", [
"author" => '' . htmlentities($users[$post->authorId]?->displayName ?? __("unknown")) . '',
"post_date" => '' . htmlentities($post->postDate->format("c")) . '',
--
cgit v1.2.3