Closed (fixed)
Project:
Advanced Views RSS Feed
Version:
6.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Apr 2010 at 12:40 UTC
Updated:
9 Oct 2011 at 19:31 UTC
Jump to comment: Most recent file
Comments
Comment #1
chrisdfeld commentedI encountered the same problem with 6.x-1.0-beta4. I'd consider this a top-priority fix since it results in mangled feed item titles.
TCRobbert's code above replaces views_rss_views_fields.theme.inc lines 68 through 72 FYI.
Comment #2
bgibson-glu commentedI had the same problem - edit above appears to have fixed it.
Comment #3
David Goode commentedThe problem isn't with the title field persay, but with the node title field handler, which does check_plain automatically on render. This could affect anything, including description, for instance. I have attached a "fix" which does htmlspecialchars_decode and then check_plain's. An ideal fix would involve PHP 5.2's option to htmlspecialchars which doesn't allow double encoding...not supported for lower versions though. This is probably a reasonable fix and RTBC, no much better way of doing it that I see. Thanks for the find.
Comment #4
David Goode commentedPrevious patch committed.
Comment #6
bgibson-glu commentedAfter upgrading to beta5 this issue has reappeared - my title field is outputting html entities (see http://www.glu.org/en/feeds/ais).
I never installed the patch, just used the code in the original post. Thoughts on what might be happening?
Comment #7
bgibson-glu commentedComment #8
ranganathsm commentedEven I am having the same problem. I downloaded the latest beta5 and still the titles and teasers have the html special characters.
Anybody has a solution for this?
Comment #9
jordanshirkey commentedI was experiencing this issue with 1.0-beta5. My quick solution was just to copy the template_preprocess_views_rss_fields_item() function from views_rss_views_fields.theme.inc in to my theme's template.php and then rename and modify it in a similar fashion to TCRobbert's code above:
Comment #10
icosa commentedI think David's patch works well except that by default, htmlspecialchars_decode() doesn't decode single quotes so I was getting & #039; in my titles.
Adding the ENT_QUOTES parameter fixes that.
Comment #11
aaronelborg commentedicosa's fix to David's patch fixes the issue for me.
thanks, icosa and David!
Comment #12
trisketonni commentedI have created a new patch with the changes you submitted. It was very helpful.
Thanks a lot!
Comment #13
arski commentedworks perfectly for me - are there still any potential issues with that or can we mark this as tested and get it committed?
Comment #14
sirkitree commentedPatch in #12 worked for me.
Comment #15
maciej.zgadzaj commentedFix #10 (patch #12) committed to 6.x-1.x-dev.