Forum: Ruby on Rails RSS <description> problem

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
rh (Guest)
on 2006-03-15 02:37
I recently built an RSS feed in Ruby, and it seemed to work fine.  Now,
when I generate my xml file, I'm getting an error because of an invalid
character.  The character is a simple apostrophe on the word >> I'm <<

Is there something that I should be doing for this?  Like, specify a
certain encoding, or inside of my <description></description> tags, put
something like this:

<description>h(post.entry)</description>

What exactly does the h() function do?  Does it escape characters?

Hopefully you can see my problem.  Thanks.
Bob S. (Guest)
on 2006-03-15 05:39
(Received via mailing list)
h() is an alias for html_escape().

Bob S.
http://www.railtie.net/
This topic is locked and can not be replied to.