Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-06-02 07:07:41

LetterHoofd
Member
From: Kortrijk, BE
Registered: 2006-01-20
Posts: 40
Website

& in RSS feed

Ampersands in article titles get changed to & in RSS-feeds. How do I fix it?

Offline

#2 2009-06-02 09:00:12

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,330
Website Mastodon

Re: & in RSS feed

Why would you want to fix something which (IMHO) isn’t broken?

Offline

#3 2009-06-02 09:59:18

LetterHoofd
Member
From: Kortrijk, BE
Registered: 2006-01-20
Posts: 40
Website

Re: & in RSS feed

If other people want to show the RSS feed on their website, the article title shows ‘something & something’ instead of ‘something & something’. Most likely this is not an error of Textpattern but of settings in the other system. In concreto: one of my customers wants to publish the RSS feed on their Sharepoint Portal and gets these results.

  • Does anyone know how to deal with it?
  • Is it something I could/should change in my Textpattern setup, or something Sharepoint-related?

I also get these kinds of results in excerpts, when viewing related articles with tru_tags (and not in the excerpts in search results. e.g. www.ccdeschakel.be/tag/kippenvel/
But that is something I will post in that dedicated forum post.

Offline

#4 2009-06-02 10:49:30

LetterHoofd
Member
From: Kortrijk, BE
Registered: 2006-01-20
Posts: 40
Website

Re: & in RSS feed

Also in my list of recent comments the & shows &
www.ccdeschakel.be/blog – right column “recente reacties”
I only used txp:recent_comments to display those latest comments.

Offline

#5 2009-06-02 12:11:11

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,330
Website Mastodon

Re: & in RSS feed

LetterHoofd wrote:

If other people want to show the RSS feed on their website, the article title shows ‘something & something’ instead of ‘something & something’. Most likely this is not an error of Textpattern but of settings in the other system.

Textpattern encodes ampersands in RSS entry titles as &. There seems to be a slight confusion in the RSS specifications about the proper way of encoding entities, leading your receiving system to treat these elements as raw text. The ATOM specification is a bit clearer on that topic, so you’d have a chance of steering clear from this ambiguity by using the atom feed of your site if possible.

Also in my list of recent comments the & shows &
www.ccdeschakel.be/blog – right column “recente reacties”

This is a bug indeed, fixed in r3206. Thanks.

Offline

#6 2009-06-02 12:48:12

LetterHoofd
Member
From: Kortrijk, BE
Registered: 2006-01-20
Posts: 40
Website

Re: & in RSS feed

I have always been confused about the difference between Atom and RSS feeds. I’ll try it. Thanks.

Offline

Board footer

Powered by FluxBB