Afficher un message
Vieux 27/03/2008, 19h55   #1
JeffV
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut RSS Feed Creation Question

I have a RSS.php file that creates my feed everything validates except
the description tag.

$summary =
htmlentities(strip_tags($line['summary'],ENT_QUOTES),ENT_QUOTES);

$output .= "<item>
<guid>".htmlentities($line['URL'])."</guid>
<title>".htmlentities($line['title'])."</title>
<link>".htmlentities($line['URL'])."</link>
<description>".$summary."</description>
</item>";

If I take out the description then the feed works fine except my
summaries aren't readable.

When I put in the description tag (above) my Yahoo reader shows the
summaries but there are still %23, %2C,%27 and so on.

I have tried several variations. I'm just wondering where I am going
wrong. Can anyone advise?

Thanks,

Jeff
  Réponse avec citation
 
Page generated in 0,04668 seconds with 9 queries