Webmastersite.net
Register Log In

& symbols breaking rss feed

Comments on & symbols breaking rss feed

fusionx
Experienced

Usergroup: Customer
Joined: Jun 18, 2008

Total Topics: 22
Total Comments: 85
fusionx
Posted Oct 29, 2008 - 3:57 PM:

When I post a link and the description contains an & symbol, it's breaking the rss feed. Is there a work around or a way to get WSN Links to automagically convert similar characters to their equivalents? eg, & becomes
&
etc?

The actual error message is:

The URL does not appear to reference a valid XML file. We encountered the following problem: Error on line 11: The entity name must immediately follow the '&' in the entity reference.

Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Oct 30, 2008 - 6:26 PM:

It already does. Did you customize the template?
fusionx
Experienced

Usergroup: Customer
Joined: Jun 18, 2008

Total Topics: 22
Total Comments: 85
fusionx
Posted Nov 03, 2008 - 5:29 AM:

Yeah - I created a new field called "snippet" - like your new Summary, I suppose. I pull that field for the RSS feeds.

Will your Summary field be stripped/converted? I'll get rid of mine and use yours if it does smiling face
fusionx
Experienced

Usergroup: Customer
Joined: Jun 18, 2008

Total Topics: 22
Total Comments: 85
fusionx
Posted Nov 03, 2008 - 7:24 AM:

I switched everything over to use Summary instead of my custom field "Snippet". Adding content still stores and displays '&'s without conversion.

I must be missing something in the templates or underlying code. It's stored raw for Summary and Description, and displayed raw in summary, description and the RSS feed.

BTW - I'm using the plain text editor.

Is there a LINKSUMMARYSTRIPPED function available?
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Nov 05, 2008 - 12:03 PM:

Stripping removes HTML, not &s. You could use {FUNC_REMOVESPECIAL[{LINKSTRIPPED}]}
fusionx
Experienced

Usergroup: Customer
Joined: Jun 18, 2008

Total Topics: 22
Total Comments: 85
fusionx
Posted Nov 08, 2008 - 8:29 AM:

Paul wrote:
Stripping removes HTML, not &s. You could use {FUNC_REMOVESPECIAL[{LINKSTRIPPED}]}


Wi ll that work with the LINKSUMMARY? I was under the impression that special characters would be replaced with their encoded versions when a record was saved.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Nov 08, 2008 - 1:16 PM:

It'll work with any content.

I was under the impression that special characters would be replaced with their encoded versions when a record was saved.

For some characters, yes. & isn't one of those.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



Sorry, you don't have permission to post posts. Log in, or register if you haven't yet.