Supported meta tags (many can have attributes if proper):
<!-- RSS comment -->
<copyright>
<channel>
<title>
<description>
<category>
<image>
<link>
<comments>
<language>
<item>
<guid>
<source>
<author>
<enclosure>
<pubDate>
<lastBuildDate>
<managingEditor>
<webMaster>
<generator>
<docs>
<cloud>
<ttl>
<rating>
<textInput>
<name>
<skipHours>
<skipDays>
Supported body tags:
<p>, <span>, <strong>, <b>, <i>, <em>, <br>
Supported body tags with attributes:
<a href="URL">
<img src="URL" alt="description">
Supported body tags by some readers (you will need to test it):
<picture>, <figure>, <div>, <h1>, <h2>, <h3>, <h4>, <h5>, <h6>, <span style="color:red">
Not supported:
<iframe>, <script>, <style>
IMPORTANT:
- Use plain text within all tags to avoid issues
- All elements must have a closing tag
- Elements are case sensitive
- Elements must be properly nested
- Attribute values must always be quoted
- There is no official standard for RSS
- It is not possible to cover whole topic here
- Use resources to keep valid and up-to-date
https://www.w3schools.com/xml/xml_rss.asp
https://www.rssboard.org/rss-specification
https://www.rssboard.org/rss-validator/
SANITIZING / TESTING: it does not seem there are any public test suites. Yet, it's worth seeing following:
https://digialert.com/index.php/resources/blog/blog/vulnerability-assessment-and-pentesting/rss-feed-injection
https://github.com/bigapplemonkey/Feed-Reader-Testing (jasmine-based test suite for a web-based application that reads RSS feeds; seems abandoned, but can be a ramp to start)
https://github.com/FreshRSS/FreshRSS/issues/3497 (thread on FreshRSS feed filtering functionality)