PHP & RSS Feeds & Special Characters validation Problem.

Posted by BUGY on Stack Overflow See other posts from Stack Overflow or by BUGY
Published on 2011-01-15T23:41:38Z Indexed on 2011/01/15 23:53 UTC
Read the original article Hit count: 163

Filed under:
|

I keep getting the following validation warning below. And I was wondering that some of my articles deal with special characters and was wondering how should I go about rendering or not rendering special characters in my RSS feeds? Should I use htmlentites or not? If so how?

In addition, interoperability with the widest range of feed readers could be improved by implementing the following recommendations. line 22, column 35: title should not contain HTML: &

PHP code.

<title>' . htmlentities(strip_tags($title), ENT_QUOTES, "UTF-8") . '</title>

© Stack Overflow or respective owner

Related posts about php

Related posts about rss