I needed to make my wordpress markup paragraphs on my blog as div's, but mark them up as p's in my feed. (The div's render fine with the right style sheet, but feed readers will only render the content well with p's).
I've successfully made WordPress do what I want, but at the cost of modifying the feed templates (feed-rss2 and feed-atom).
The problem is that there's no filter hook that's called for feed content but not for normally displayed content.
the_content is the hook called for both. Also, in the template, the content is actually echoed within the function
the_content() rather than echoed in the template itself.
My preferred solution would be to have a function that returns the content, and then echo it within the template. Right now I use
get_the_content which works fine for my purposes, but I don't know what problems this might cause for others.
Obviously I can continue to maintain my patched templates but I'd rather not.