On Facebook some feeds of my blog are feeded automatically by the RSS Graffiti application. And I wonder for a while why the tt_news RSS feed contains the preview image but the t3blog RSS feed comes without it.
If find images with a short teaser much more interesting than only text. That's why I add an image.
I checked out the current class.rss.php from the forge.typo3.org repository. The developers changed a lot since the last release 1.0.0 and there is still no release 1.1.0. But this class didn't worked as expected because there is still a bug inside. So first I made a bugreport with a patch.
After this the content:encoded field was filled but the images where gone nevertheless. That's because they strip all tags out of the description with the PHP function strip_tags(). So I added the
-tag to the allowed tags in line 598:
$text = strip_tags($text, '<a><img><b><br><em><hr><i><li><ol><p><strong><ul>');
Your comment