I would like format the my RSS feed content. Like embed some information with Description tag. I am creating WordPress Rss feed and trying to create rss 2.0
<?xml version="1.0"?>
<rss version="2.0">
<channel>
<item>
<title>firstquestion</title>
<url>test-domain.com</url>
<description>This is some ifnormation on the description. The below are the answers for the new question</description></item>
</channel>
</rss>
Now, I want to format or further some table or information to be attached with special characters, even html tags formatting in the <description> … How can I do that?
When I simply insert , it gives me an error?
You can have HTML inside the description element, but you have to encode it using htmlspecialchars.