-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
RSS feed title showing HMTL code #39004
Comments
I believe that the line of code is
|
I think you are correct. How do we get the output to be a single quote for the feed though. I can see the htmlspecialchars is doing its job. |
Do you have any thoughts on how to render character correctly for Feed? |
|
Can you please try to test this with: htmlspecialchars(strip_tags($data->items[$i]->title), ENT_COMPAT | ENT_XML1, 'UTF-8') Or just: htmlspecialchars(strip_tags($data->items[$i]->title), ENT_XML1, 'UTF-8') |
The problem is that there are two different sets of code that is used for sanitizing the title. If its a blog or list category then it uses joomla-cms/libraries/src/MVC/View/CategoryFeedView.php Lines 86 to 89 in 2a8b6bb
But if it is features articles (or some of the other components) then it uses joomla-cms/components/com_content/src/View/Featured/FeedView.php Lines 56 to 58 in 2a8b6bb
|
Steps to reproduce the issue
How can I get the Joomla 4 RSS to render single quotes as single quotes in the RSS feed? I get this ' instead of a single quote.
As a result the email notices of the RSS feed also show this oddity.
Create article with single quote in title then save and view RSS
Expected result
The Feed should read. "<title>You Know You're Different - How Can You Prove It?</title>"
Actual result
RSS feed tile says, "<title>You Know You're Different - How Can You Prove It?</title>"
System information (as much as possible)
See attached TXT file
Additional comments
The text was updated successfully, but these errors were encountered: