Closed (fixed)
Project:
Feedparser
Version:
master
Component:
feedaggregator_node
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 Dec 2006 at 00:26 UTC
Updated:
27 Dec 2006 at 02:31 UTC
Titles of items with apostrophes are being disoplayed incorrectly:
Tim Ball's better, warmer world at odds with new famine forecast
is this me or feedparser?
Comments
Comment #1
FiReaNGeL commentedI'm experiencing this also, apostrophes are replace with &apos (;)
Comment #2
buddaThis occurs with a number of HTML entities, such as £ ; and " ; etc.
The problem is the feed parser (SimplePie) provides the item titles as valid XHTML markup.
When Drupal displays the node titles as clickable links they are passed through the l() function which runs the text through a function to make sure there is nothing nasty in the string, which in turn double encodes all the HTML entities.
If I first decode the SimplePie strings back to plain text using html_entity_decode() it then causes the problem mentioned in http://drupal.org/node/101270
It seems I can't win either way. Ideas appreciated.
Comment #3
buddaWriting things down for others seems to help solve them! Fixed this bug in CVS.
Comment #4
(not verified) commented