Posted by mattmm on December 12, 2008 at 5:16pm
Looking to see how people handle output of views blocks (or otherwise) generated by feedAPI that have HTML markup in the feed.
I have a blocks that display a feed title and the teaser. However, the feed has HTML that the teaserfield isn't parsing. Things like breaks 'br' font-sizes etc are displaying as pure text in the field. Has anyone managed to avoid this? Possibly by mapping a teaser field to a specific CCK field of sorts?
Feedback welcome.

Comments
Haven't had that problem, yet some suggestions.
Never had that problem.
All my FeedAPI populated view blocks have been ok. I've done it with both teasers field as List type and just plain Teaser type.
Always good to be mindful of the "input format" (v5) used as the setting for feed items. Could be an issue there.
Also, I've always found that it's good to try feeds from a few sources. Sometimes a specific feed XML structure can be troublesome.
-josh
Input filters
Check the allowed tags that are permitted via your input filters. It sounds like they are being stripped.
Cheers,
Bill
FunnyMonkey
Click. Connect. Learn.
Using Drupal in Education
FunnyMonkey
Thanks for the feedback
Thanks for the feedback guys! I guess I should have mentioned that I'm using D6. Does D6 have the same control over input filters? I don't happen to see any, unless i'm suppose to build that out in the CCK form prior to passing it a feed?
matthewm.org
New name... with reason.
The word "input formats" is vaguely misleading. The content remains in it's raw state and the filter is applied when it's rendered to a page. So really it should be called "output format." But to users it makes more sense to refer to their input as filtered.
Default input format
May have misunderstood the question, here's another go at the answer...
I've actually had some trouble with the default input format. Feed items would take on the default. I've also used the input format by node type module to fix this issue, so I can have a "blog feed item" format and keep it as a default separate from other content type defaults.
Hope that helps.
I had to go to this page
I had to go to this page mysite.com/admin/settings/filters/1/configure
I use filtered html by default on the feed items content type. I had to add "br" to "allowed' tags so that linebreaks are taken in account. Do the same with tags that you need.
Hope that helps
Thanks guys, I'll check this
Thanks guys, I'll check this out and let you know.
matthewm.org
Just an example of what I'm
Just an example of what I'm seeing passed into my feeds:
PSPAN style=COLOR: rgb(193,0,0)SPAN style=FONT-WEIGHT: boldFONT color=#437397Status:/FONT/SPAN FONT color=#189400Maintenance is complete/FONTFONT color=#189400! Welcome back!/FONT/SPAN/P
PSPAN style=COLOR: rgb(193,0,0)/SPANBRGreetings!BRBR
matthewm.org
Of course, if I could strip
Of course, if I could strip the HTML out - that would be fine too...
matthewm.org