PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » XML » XML_RSS » Bug #3123

Incomplete item:description returned if contains html

Details

Submitted2005-01-06 17:13 UTC
Fromkickthedonkey at gmail dot com
Assignedclay
StatusBogus
PackageXML_RSS
PHP Version4.3.3
OSLinux and Windows
Roadmaps(Not assigned)

Comments

[2005-01-06 17:13 UTC] kickthedonkey at gmail dot com

Description:
------------
Using XML_RSS version 0.9.2.

When parsing an item's description, it appears that if the descripiton contains un-encoded HTML ( '<' instead of '&lt;'), the decritpion is truncated at the first unencoded <.

I've run into this while trying to use XML_RSS to parse the RSS feeds from Bungie for halo2. An example of a feed constructed in this way can be found here:

http://ktd.sytes.net/files/hollismb.rss

I'm not sure if this is a 'problem' with XML_RSS or XML_Parser. Please advise if I need to provide anymore info.

Reproduce code:
---------------
http://ktd.sytes.net/files/test.php (the table in every div should be populated).

[2005-01-06 17:17 UTC] kickthedonkey at gmail dot com

Sorry, ( '<' instead of '&lt;') should be ( '<' instead of '<')

[2005-05-29 01:38 UTC] kickthedonkey at gmail dot com

I've corrected the feed on my site. Try refreshing it. It now contains 'unencoded' html.

[2006-09-14 07:58 UTC] clay at php dot net

What you're describing -- an unescaped/unencoded HTML tag inside a description tag, apparently not wrapped in a <![CDATA[ ]]>, is invalid XML.

Until a possible future version of XML_RSS that is tolerant of invalid feeds, this isn't a bug that legitimately needs a fix. Instead, the publisher of the feed in question needs to fix their feed.