[SOLVED]A question regarding RSS and Internet Explorer

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
Rovas
Forum Contributor
Posts: 272
Joined: Mon Aug 21, 2006 7:09 am
Location: Romania

[SOLVED]A question regarding RSS and Internet Explorer

Post by Rovas »

I have a RSS feed that contains HTML tags which I encapsulated in CDATA. The problem is that Internet Explorer reports the characters in the CDATA as invalid. Strangely is doesn' t report the forbiden characters: <, &, etc but characters like space, letters.
This is the error message:

Code: Select all

An invalid character was found in text content.
 Line: 18 Character: 165
 
I read about the need for adding XSLT files that help the program to interpret the HTML tags but IE was displaying this feed correctly 2 months ago.
Last edited by Rovas on Fri Nov 21, 2008 6:29 am, edited 1 time in total.
User avatar
JAB Creations
DevNet Resident
Posts: 2341
Joined: Thu Jan 13, 2005 6:44 pm
Location: Sarasota Florida
Contact:

Re: A question regarding RSS and Internet Explorer

Post by JAB Creations »

I'm not sure if this will help though my feed validates and doesn't seem to have any problems with IE8B2 so I offer it up to you to steal the code and see if you encounter the same problems.
http://www.jabcreations.com/news.xml

...if you're looking to validate you can do so here...
http://validator.w3.org/feed/
Rovas
Forum Contributor
Posts: 272
Joined: Mon Aug 21, 2006 7:09 am
Location: Romania

Re: [SOLVED]A question regarding RSS and Internet Explorer

Post by Rovas »

Thank you for the offer but it was a PHP mistake (more a lapsus) on my part. I forgot to add the character encoding to the html_entity_decode
Post Reply