Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tag & Author HTML links to render correctly #375

Open
wants to merge 1 commit into
base: 2.4
Choose a base branch
from

Conversation

leroystrubinsky
Copy link

tags & author HTML links do not render correctly. To display properly - modify the PHP code to output the tags without escaping the HTML

Screenshot 2025-02-01 145448

Description

Tags not displaying properly on desktop related to how the tags are being rendered. Snippet shows that the tags are being output using the following line:
php

escapeHtml(__('Tags: %1', $tagList)); ?>

This line is escaping the HTML content of the tags, which is causing the tags to be displayed as plain text instead of clickable links on the desktop view.

To fix this issue, we modified the PHP code to output the tags without escaping the HTML:

php

getTagList($_post)) : ?>
| <span><i class="fa fa-tags"></i><?= __('Tags: ') ?><?= $tagList ?></span>

This allows the HTML structure of the tags to be preserved, resulting in clickable tag links similar to what is shown in the search results for the mobile view.

Screenshot 2025-02-01 145615

tags & author HTML links do not render correctly. To display properly - modify the PHP code to output the tags without escaping the HTML
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant