diff options
author | Jonas Kohl | 2024-09-19 16:34:10 +0200 |
---|---|---|
committer | Jonas Kohl | 2024-09-19 16:34:10 +0200 |
commit | c42d6db8cd736cfdadde9e9810aff79b34f0d9b6 (patch) | |
tree | f680c7414481253d42baa41c5fc6fc84b14873bb /src | |
parent | 4a6e12bf1fc7837699f780674c33cba5f2b1223c (diff) |
Fix escaping in search results
Diffstat (limited to 'src')
-rw-r--r-- | src/application/views/view_search_results.php | 2 |
1 files changed, 1 insertions, 1 deletions
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; <?php if ($hasAttachments): ?> <span class="badge"><span class="glyphicon glyphicon-paperclip"></span></span> <?php endif; ?> - <?= htmlentities(StringUtils::truncate(strip_tags(renderPost($post->content)), 100)) ?><br> + <?= htmlentities(html_entity_decode(StringUtils::truncate(strip_tags(renderPost($post->content)), 100))) ?><br> <span class="text-muted"><?= __("posted by %author% on %post_date% in %topic%", [ "author" => '<em>' . htmlentities($users[$post->authorId]?->displayName ?? __("unknown")) . '</em>', "post_date" => '<span class="_time">' . htmlentities($post->postDate->format("c")) . '</span>', |