RSS Aggregator: Superfluous HTML tags?

Creating and modifying plugins.
Post Reply
hollow
Regular
Posts: 18
Joined: Mon Dec 20, 2004 11:16 pm

RSS Aggregator: Superfluous HTML tags?

Post by hollow »

Hello,
please have a look at http://planet.mausdompteur.de/index.php ... 14251.html

As you can see, there is HTML in the entry that is not parsed, but shown in it's full beauty. What did I do wrong? Does the 'Transform HTML in Comments' Markup plugin work, or is it really only working on comments?

Regards,
Harald
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

I'd guess it only works on comments, but I don't know for sure.

I can put HTML in my entries with no problem. I do it all the time. I'd bet one of your markup plugins (under Configure Plugins->Event Plugins)is causing you trouble. I'd remove them, one at a time, until the front page shows decent entries. Then I'd put them all back and see if there's some kind of configuration for the offending one.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

I think this is a problem of the RSS feed you import. What's that feeds URL? He seems to notproperly encode his HTML.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

Hey Garvin,

How did you know that was an RSS aggregator? I completely missed it. I'd like to be able to tell next time.

Thanks,
Judebert
Guest

Post by Guest »

You can't really tell, without knowing it. The categories sidebar plugin is an indicator, but apart from that I just remembered that this "Planet" was a Aggregator installation from a previous posting.,..

Regards,
Garvin
hollow
Regular
Posts: 18
Joined: Mon Dec 20, 2004 11:16 pm

Post by hollow »

Well, the topic points out I am talking about the RSS aggregator, no?
Anyway, I might need to write a filter to either reconvert those tags or strip than. Would that be too difficult?
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

Should be dirt simple. PHP has an htmlentities function that converts escaped characters back into HTML. Sounds like it'll do exactly what you're looking for!
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hollow: The problem is that you shouldn't fix that problem on your side.

If you revert all HTML entities back to HTML code, you'll also convert entities which were properly encoded on right blogs! IF other blogs use entities to denote sourcecode, you'll convert it back to real HTML in your aggregator.

So by fixing that one buggy blog, you'll break all correct aggregated blogs.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply