Re: XML_RSS bug/usage error?
| From: | Jeff MacDonald | Date: | Thu, 04 Aug 2005 18:19:54 +0000 |
| Subject: | Re: XML_RSS bug/usage error? | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-20277@lists.php.net to get a copy of this message | ||
On Thu, Aug 04, 2005 at 11:41:07AM -0500, Darren Ehlers wrote:
> I've got a problem when using the XML_RSS package. It appears to be
> stripping the ampersands in the resulting URL links.
>
> For example:
>
> require_once ('Extras/XML/RSS.php');
>
> $rss =& new
>
> XML_RSS("http://www.microsite.reuters.com/rss/worldNews");
> $rss->parse();
>
> foreach ($rss->getItems() as $item)
> {
> $news .= '<a class="top_ticker" target="_blank"
>
> href="'.$item['link'].'">"'.$item['title'].'</a>';
> }
>
> The $item['link'] is missing the ampersands.
>
> Any ideas? Or what I may be doing wrong?
>
what is display_errors set to?
regards,
J