Hi all,
I am having a problem with displaying my RSS Module. In my RSS Module I used the rss feed from an Active Forum in my website and it will display 3 new recent posts in a specific forum group.
My problem is that with the current WYSIWYG editor that I have (CuteSoft Editor) I can put in HTML tags such as <table> tag and the RSS Module displays the first 100 characters for each topic. Because of the <table> tag not closed properly the contents and modules below this RSS Module are being displayed inside this RSS Module which broke the website design.
I have been looking for a way to edit the XSL that styles the RSS feed so that it would strip HTML tag in the description. Below is the code that I am using just to display title, date and first 100 characters:
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" indent="yes"/>
<xsl:param name="TITLE"/>
<xsl:template match="rss">
<!-- Do not show channel image -->
<xsl:for-each select="channel/item[ position() < 4] ">
<div id="bb_rss_news_items">
<div id="bb_title"><strong><a href="{link}"><xsl:value-of select="title"/></a></strong></div><div id="bb_date"><em><xsl:value-of select="pubDate"/></em></div>
<!-- only display markup for description if it's present -->
<div id="bb_description"><xsl:value-of disable-output-escaping="yes" select="substring(description,1,100)"/><br /><a href="{link}">More...</a></div>
</div>
</xsl:for-each>
</xsl:template>
<xsl:template match="description">
<xsl:value-of select="."/> *
<br />
</xsl:template>
</xsl:stylesheet>
If you guys have any input or anything that can help me, I'd greatly appreciate it.
Thank you.
Heindy