Closed (fixed)
Project:
Timeline
Version:
6.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Oct 2008 at 12:59 UTC
Updated:
26 Dec 2008 at 17:21 UTC
Jump to comment: Most recent file
Comments
Comment #1
chirale commentedThis quick fix transforms single and double quote entities on title into right characters using html_entity_decode() function. I don't know if this is the right place to put it or if a best function should be used, but it seems to work fine.
Comment #2
cglusky commentedDo we want to use PHP's html_entity_decode or Drupal's decode_entities?
http://api.drupal.org/api/function/decode_entities
I looked around and have seen it done both ways in other contribs.
Some work going into D7 core for decode_entities http://drupal.org/node/212130
c
Comment #3
jmiccolis commentedI'm suspicious that this is actually an issue in the simile timeline code and not our module. Attached is an image where you can see that it renders the url-encoded title fine on the timeline itself, but just not in the popup.
Does this happen for the others that have seen this issue as well?
Comment #4
cglusky commentedI added an apostrophe to one of my feedapi items titles and was able to duplicate chirale's issue.
Comment #5
cglusky commentedAnd with patch from #1 applied it's fixed - in the timeline and pop-up.
Comment #6
jmiccolis commentedOk, I've committed patch above with some minor changes, and added a comment. It seems unusual that we need to decode just one element that we send to the timeline widget - but it certainly fixes the reported issue.