tjhilder Posted October 22, 2007 Share Posted October 22, 2007 Hi, I have my own news script which recently got it's own RSS builder built into it. the problem I'm having is that whenever there is a ' (example: let's, I'm) it seems to make the RSS error when viewed by IE6. An invalid character was found in text content. Error processing resource 'http://www.integritynewz.com/feeds/ineconomy.xml... <description>The US economy may be set to slow in 2008, but Africa is there a way around this? i.e stripping the ' from the text before inputted (basicly grabs the info from mysql and writes to a file like test_rss.xml using php) Quote Link to comment https://forums.phpfreaks.com/topic/74310-php-created-rss-feed-causing-ie-error-because-of/ Share on other sites More sharing options...
only one Posted October 22, 2007 Share Posted October 22, 2007 I'm no expert on RSS or how it works but here are HTML codes for quotation marks: " = " ´ = ` Quote Link to comment https://forums.phpfreaks.com/topic/74310-php-created-rss-feed-causing-ie-error-because-of/#findComment-375428 Share on other sites More sharing options...
GingerRobot Posted October 22, 2007 Share Posted October 22, 2007 Yeah, use the htmlentities() on the text after grabbing it from the database. Will convert relevant symbols such as quotes to their relevant html character codes. Quote Link to comment https://forums.phpfreaks.com/topic/74310-php-created-rss-feed-causing-ie-error-because-of/#findComment-375435 Share on other sites More sharing options...
tjhilder Posted October 22, 2007 Author Share Posted October 22, 2007 thanks, that should work (i hope) will test it in a sec. what other things does xml not allow between tags other then " and ' ? Quote Link to comment https://forums.phpfreaks.com/topic/74310-php-created-rss-feed-causing-ie-error-because-of/#findComment-375543 Share on other sites More sharing options...
tjhilder Posted October 22, 2007 Author Share Posted October 22, 2007 ok so I tested it, all " and ' are replaced with htmlentities() but I'm still getting the following error.. An invalid character was found in text content. Error processing resource 'http://www.integritynewz.com/feeds/ineconomy.xml... <description>The US economy may be set to slow in 2008, but Africa EDIT: firefox no longer works with the feeds after htmlentities() is used.. RSS feed code can be found on this text file http://www.integritynewz.com/feeds/ineconomy.txt Quote Link to comment https://forums.phpfreaks.com/topic/74310-php-created-rss-feed-causing-ie-error-because-of/#findComment-375547 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.