MyBB Community Forums

Full Version: RSS feed validation
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I added these lines to my rss.php

	$thread['postmessage'] = htmlentities(str_replace("  ", "", $thread['postmessage']));
	$thread['postmessage'] = str_replace("’", "'", $thread['postmessage']);
	$thread['postmessage'] = str_replace("”", """, $thread['postmessage']);
	$thread['postmessage'] = str_replace("“", """, $thread['postmessage']);

I added it after this line

	$thread['postmessage'] = nl2br(htmlspecialchars_uni($thread['postmessage']));

I hope that helps someone else here.
Yeah the feed doesn't validate, though your alterations don't fix it for me - The offending characters arn't replaced.

It looks like an encoding problem to me though I'm not entirely sure how to fix it.