Active
Project:
Advanced Views RSS Feed
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
21 Sep 2012 at 20:15 UTC
Updated:
29 Oct 2022 at 11:50 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
ice5nake commentedDrupal has a function that does entity decoding: http://api.drupal.org/api/drupal/includes!unicode.inc/function/decode_entities/6
Comment #2
ice5nake commentedChanging
$element['value'] = check_plain(htmlspecialchars_decode($element['value'], ENT_QUOTES));to
$element['value'] = check_plain(decode_entities($element['value']));seems to have solved the problem
Comment #3
ice5nake commentedComment #4
ice5nake commentedMy patch to end the double encoding is only working on View Displays setup with style "RSS Feed - Fields" and not on ones with style "RSS Feed".
Is the "RSS Feed" style part of a different module?
Comment #5
richsky commentedI have the same problem with 7rc3, outpout ' or & But for all custom rss fields.
I had to overrride theme.inc / template_preprocess_views_view_views_rss and add
ln 710 $value = htmlspecialchars_decode($value, ENT_QUOTES); because of
ln 878 format_xml_elements() that use check plain() that use htmlspecialchars() that reencode the string.
Comment #8
maciej.zgadzaj commentedFixed in 6.x-2.x (+ fix's fix) and 7.x-2.x.
Comment #10
esolitosI'm not sure if it's related, but I get an error with my feed that seems related to this.
The feed URL is: http://journalisten.no/feed/rss.xml
In the views preview I get the following code, which shows that å (html entity:
å) is double encoded aså, which I think it should be ok, since in xml the entityåis not defined, but as you can observe in the feed i linked above this leads to some encoding issues! (PS: the same goes for ø, which isø)I have other feeds served by the same situation, but this view seems to be the only one giving me troubles.
Any suggestions?
Comment #11
renzomb commentedI have the same problem esolitos, i want to put some custom analytics with the & and the feed encoded is broken, It shows me & and that doesnt work for me, Did u solve this? . I see that in views rss code $value have decode_entities function but doesnt work, i keep watching this to find a solution.
Comment #12
renzomb commentedWell, i fixed this with:
Comment #13
damienmckennaComment #14
avpaderno