Page 1 of 1

[Solved] CGFeedMaker Err "Whitespace is not allowed at..."

Posted: Thu Sep 19, 2013 8:28 pm
by msalgo
Hi there,

I just downloaded and installed CGFeedMaker (and the CGExtensions prerequisite).

I set up a feed for our news page and I get the following error on the news feed URL:
Whitespace is not allowed at this location.
Line: 455 Character: 108

<description>The University of St. Thomas’s Opus College of Business has named Marvin Windows & Doors its Family Business of the Year</description>
What might I be doing wrong? I am thinking it has to do with the & symbol, but how can I make those be ok? We need to use special characters from time to time such as & and the Registered symbol.

Thank you,
-Michael

Re: CGFeedMaker Err "Whitespace is not allowed at this locat

Posted: Sat Oct 05, 2013 9:20 pm
by Dr.CSS
Try using html entities, & , you can find these in tinyMCE under the character link...

Re: CGFeedMaker Err "Whitespace is not allowed at this locat

Posted: Wed Oct 23, 2013 5:50 pm
by msalgo
Thanks, Dr.CSS. Changing the & to & did the trick.

We're not using TinyMCE so we'll just have to keep an eye on it.

Thanks again. Going to update the subject with "[Solved]" now.

Re: [Solved] CGFeedMaker Err "Whitespace is not allowed at..

Posted: Thu Oct 24, 2013 1:04 am
by applejack
However you can't use special character codes in the titles as they will show as e.g. & and therefore will not validate properly for a RSS feed.

To test if your feed validates you can use http://validator.w3.org/feed/

You can use this to convert text to special characters http://www.emailonacid.com/character_converter/

Re: [Solved] CGFeedMaker Err "Whitespace is not allowed at..

Posted: Thu Oct 24, 2013 1:43 am
by calguy1000
Use CDATA in the various fields, and/or striptags and entity encode everything.

i.e: <title>{$some_title|cms_escape}</title>