- First commit to issue fork.
- Status changed to Needs review
9 months ago 1:36pm 5 April 2024 - 🇺🇦Ukraine quadrexdev Lutsk
Added test coverage in an existing merge request, please review
- Status changed to Needs work
8 months ago 3:09pm 12 May 2024 - 🇺🇸United States generalredneck
I imported the view used in the automated test. I don't think this patch fixes the full problem. I used a modified version of the test's content and put in the title of
I'm testing special characters day&night© ® € ™ ← ↑ → ↓ ♠ ♣ ♥ ♦
. It really is just the Ampersand (&) that causes issues. While the "title" is fixed in the view, the other fields that rendered are not.Here is the full source code of the view outputed by the test. Note that the link, description, dc:creator, and guid> fields are all double encoding the ampersand.
<?xml version="1.0" encoding="utf-8"?> <rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0" xml:base="http://drupal-10.lndo.site/"> <channel> <title>Rss</title> <link>http://drupal-10.lndo.site/</link> <description/> <language>en</language> <item> <title>Hey Hey</title> <link>http://drupal-10.lndo.site/Hey%20%3Csup%3EHey%3C/sup%3E</link> <description>Hey <sup>Hey</sup></description> <pubDate>Hey Hey</pubDate> <dc:creator>Hey <sup>Hey</sup></dc:creator> <guid isPermaLink="true">http://drupal-10.lndo.site/Hey%20%3Csup%3EHey%3C/sup%3E</guid> </item> <item> <title>I'm testing special characters day&night© ® € ™ ← ↑ → ↓ ♠ ♣ ♥ ♦</title> <link>http://drupal-10.lndo.site/I%26#039;m testing special characters day&amp;night© ® € ™ ← ↑ → ↓ ♠ ♣ ♥ ♦</link> <description>I'm testing special characters day&amp;night© ® € ™ ← ↑ → ↓ ♠ ♣ ♥ ♦</description> <pubDate>I&#039;m testing special characters day&amp;night© ® € ™ ← ↑ → ↓ ♠ ♣ ♥ ♦</pubDate> <dc:creator>I'm testing special characters day&night© ® € ™ ← ↑ → ↓ ♠ ♣ ♥ ♦</dc:creator> <guid isPermaLink="true">http://drupal-10.lndo.site/I%26#039;m testing special characters day&amp;night© ® € ™ ← ↑ → ↓ ♠ ♣ ♥ ♦</guid> </item> </channel> </rss>