I was able to fix this on my local XAMPP installation like this for Mediawiki 1.27.0 and RSS Version 2.25.0 (2014-03-28):PHP 5.6.23 (apache2handler), MySQL 5.5.39
in RSSParser.php remove the following if condition in line 403
if ( isset( $wgRSSAllowImageTag ) && $wgRSSAllowImageTag ) {
$extraInclude[] = "img";
} else {
$extraExclude[] = "img";
}
This way the images were displayed for my Google Feed.
So the block from line 394 should look like this:
protected function escapeTemplateParameter( $text ) { global $wgRSSAllowLinkTag, $wgRSSAllowImageTag; $extraInclude = array(); $extraExclude = array( "iframe" ); if ( isset( $wgRSSAllowLinkTag ) && $wgRSSAllowLinkTag ) { $extraInclude[] = "a"; } else { $extraExclude[] = "a"; }if ( ( isset( $wgRSSAllowLinkTag ) && $wgRSSAllowLinkTag ) || ( isset( $wgRSSAllowImageTag ) && $wgRSSAllowImageTag ) ) { $ret = Sanitizer::removeHTMLtags( $text, null, array(), $extraInclude, $extraExclude ); } else { // use the old escape method for a while $text = str_replace( array( '[', '|', ']', '\, 'ISBN ', 'RFC ', '://', "\n=", 'Template:', '', ), array( '[', '|', ']', ''', 'ISBN ', 'RFC ', '://', "\n=", '{{', '}}', ), htmlspecialchars( str_replace( "\n", "", $text ) ) );
// keep some basic layout tags
also change your LocalSettings.php to something like this:
#RSS
require_once( "$IP/extensions/RSS/RSS.php" );
$wgRSSUrlWhitelist = array ("your Feed urls here" ,"etc");
$wgRSSAllowLinkTag = true;
$wgRSSItemMaxLength = 5000; //if the length is too short, the parsed URL will be trunctuated and result in HTML tags
$wgRSSDateDefaultFormat = "d-m-Y H:i";
$wgRSSCacheAge = 21600;
$wgAllowImageTag = true;