|
|
|
#1 |
|
Messages: n/a
Hébergeur: |
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 |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
JeffV wrote:
> I have a RSS.php file that creates my feed everything validates except > the description tag. What error message do you get? Could it be a charset problem? -- Toby A Inkster BSc (Hons) ARCS [Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux] [OS: Linux 2.6.17.14-mm-desktop-9mdvsmp, up 1 day, 22:32.] Best... News... Story... Ever! http://tobyinkster.co.uk/blog/2008/03/23/hypnotist/ |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
No errors... However, when I put in the description tag in the
rss.php file my Yahoo reader shows the description but there are %23, %2C,%27 showing up where the commas, quotes are. On Mar 28, 4:12 am, Toby A Inkster <usenet200...@tobyinkster.co.uk> wrote: > JeffV wrote: > > I have a RSS.php file that creates my feed everything validates except > > the description tag. > > What error message do you get? > > Could it be a charset problem? > > -- > Toby A Inkster BSc (Hons) ARCS > [Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux] > [OS: Linux 2.6.17.14-mm-desktop-9mdvsmp, up 1 day, 22:32.] > > Best... News... Story... Ever! > http://tobyinkster.co.uk/blog/2008/03/23/hypnotist/ |
|
|
|
#4 |
|
Messages: n/a
Hébergeur: |
JeffV wrote:
> No errors... However, when I put in the description tag in the rss.php > file my Yahoo reader shows the description but there are %23, %2C,%27 > showing up where the commas, quotes are. URL? -- Toby A Inkster BSc (Hons) ARCS [Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux] [OS: Linux 2.6.17.14-mm-desktop-9mdvsmp, up 4 days, 4:30.] Cognition 0.1 Alpha 6 http://tobyinkster.co.uk/blog/2008/0...nition-alpha6/ |
|
|
|
#5 |
|
Messages: n/a
Hébergeur: |
http://www.godsurfer.com/rss.php
On Mar 30, 10:10 am, Toby A Inkster <usenet200...@tobyinkster.co.uk> wrote: > JeffV wrote: > > No errors... However, when I put in the description tag in the rss.php > > file my Yahoo reader shows the description but there are %23, %2C,%27 > > showing up where the commas, quotes are. > > URL? > > -- > Toby A Inkster BSc (Hons) ARCS > [Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux] > [OS: Linux 2.6.17.14-mm-desktop-9mdvsmp, up 4 days, 4:30.] > > Cognition 0.1 Alpha 6 > http://tobyinkster.co.uk/blog/2008/0...nition-alpha6/ |
|
|
|
#6 |
|
Messages: n/a
Hébergeur: |
JeffV wrote:
> http://www.godsurfer.com/rss.php There's nothing wrong with that RSS, but it doesn't contain any <description> tags, so I can't really assess if there's a problem with those. -- Toby A Inkster BSc (Hons) ARCS [Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux] [OS: Linux 2.6.17.14-mm-desktop-9mdvsmp, up 4 days, 17:00.] Cognition 0.1 Alpha 6 http://tobyinkster.co.uk/blog/2008/0...nition-alpha6/ |
|
![]() |
| Outils de la discussion | |
|
|