Nov
14
Written by:
Larry Daniele
11/14/2007 5:04 PM
As of DotNetNuke (DNN) 4.7, the RSS News Feed module doesn't display embedded HTML in the Description field because the default transform (RSS91.xsl) in the "DesktopModules\News" folder.
The solution is basically to change:
<xsl:value-of select="description"/>
to:
<xsl:value-of select="description" disable-output-escaping="yes"/>
You could edit this file directly so it would apply to all news feeds you put on your system. However, if you want to control which feeds are allowed to inject arbitrary HTML into your site, then the "clean" way to do this (without changing the DNN installation itself) is to:
- Make a copy of the default RSS91.xsl on your local system.
- Make the change shown above (and any other formatting changes you might want).
- Upload this file into your DotNetNuke files. (I put mine in a "Transforms" folder.)
- Reference this file in the Settings for your News module in the News Feed Style Sheet section.
1 comment(s) so far...
Re: Getting HTML to Display in a DotNetNuke RSS News Feed Module
You can also see more about this subject at http://www.dnncreative.com/RSSNewsFeedXSLStylesheet/tabid/162/Default.aspx
By Larry on
11/14/2007 5:46 PM
|