Development

#2603 (Atom item titles containing HTML don't get decoded)

You must first sign up to be able to contribute.

Ticket #2603 (closed defect: invalid)

Opened 7 months ago

Last modified 3 weeks ago

Atom item titles containing HTML don't get decoded

Reported by: Michael.Nolan Assigned to: francois
Priority: minor Milestone:
Component: sfFeed2Plugin Version: 1.0.9
Keywords: Cc:
Qualification: Unreviewed

Description

WordPress? atom feeds are encoded as HTML so that the smart quotes are entities. In the feed XML they look like:

<title type="html"><![CDATA[&#8216;If it&#8217;s written on a sweater then I&#8217;d better not do it&#8217;]]></title>

This doesn't get decoded before being put into an sfFeedItem so when output again it gets encoded again showing the entities in the feed.

Change History

06/12/08 15:43:39 changed by bjori

  • status changed from new to closed.
  • resolution set to invalid.

CDATA nodes should not be decoded in any way. "Within a CDATA section, only the CDEnd string is recognized as markup, so that left angle brackets and ampersands may occur in their literal form; they need not (and cannot) be escaped using "&lt;" and "&amp;"." WordPress? needs to either html escape their data or use CDATA, not both.