Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsNews FeedsNews FeedsHtml tags on rssHtml tags on rss
Previous
 
Next
New Post
8/13/2005 6:22 AM
 

I have A problem with one of my RSS module that is showing html tags.

The admin of the RSS feed say it may be a problem that the module can't handle html tags.

Any Help Will Be Appreciated

 
New Post
8/13/2005 7:16 AM
 

HTML tags should be html encoded in the feed itself. Otherwise you'll end up with problems.

Could you send the URL for the feed you're using so I could examine it a bit and see where's the problem?

 
New Post
8/13/2005 10:21 AM
 

The News Feed module uses a default xsl transformation file compatible with RSSv0.91.  While the default xsl works fine for most news feed sources, if your feed is using a diferent version of RSS to supply the news, not all attributes may rendered in the expected manner.

The key to using news feeds is to understand the contents of the feed prior to using it on your production site. If you view the source file for the newsfeed, you can find the version number listed at the very top.  Also, you'll see some interesting information in the xml elements that will give you an idea of the encoding of the items.  From this file inspection, you'll be able to quickly determine if you'll need to use a custom xsl transformation file for it.

HTML is often included in a news feed description, but unless your stylesheet allows it to be rendered, the transformation willl show the tags.  One way to overcome this situation is to create a custom transformation file, including the following code to allow HTML to render:

<xsl:value-of select="description" disable-output-escaping="yes"/>

Now, the caution is to know your news source, and be aware that allowing HTML rendering exposes you to the same cross-site scripting issues as using any other HTML source.  You must trust the news source and test the feed on a non-production site to maintain a measure of comfort.

You can specify a custom xsl transformation file for use with any news feed, so look around as there are many examples available.  In fact some newsfeeds, such as the MSDN news feeds include a reference to their xsl transformation file in the feed, so inspecting the source file is always valuable.

 
New Post
8/13/2005 4:49 PM
 

Thanks guys and girls

After  day of reading i managed to find the line you mentioned

"<xsl:value-of disable-output-escaping="yes" select="description" />"

I think we should keep it in the help of the module or a sticky on the form so others can find out more quickly

BTW The News feed is in hebrew

link: http://www.sharks.co.il/backend2.php 

Its Cars Related News

 

 
New Post
9/1/2005 11:51 AM
 
Hi guys.  Apparently i'm having the same problem.  I'm trying to pull a feed from my dasBlog site (which apparently uses xml 1.0), and the feed is giving me all sorts of html tags.  I was wondering though, is there any way to make it so that the module doesn't show the descriptions?  I really don't need them, just the title and perhaps the date/time of the post.  The descriptions seem to be the only part that are showing the html tags, so i figure an easy way around this for me would be to simply disable the descriptions.  Where would I make these changes?
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsNews FeedsNews FeedsHtml tags on rssHtml tags on rss


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out