h() is an alias for html_escape().
Bob Silva
http://www.railtie.net/
On Wednesday, March 15, 2006, at 1:37 AM, rh wrote:>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.
>
>--
>Posted via http://www.ruby-forum.com/.
>_______________________________________________
>Rails mailing list
>Rails@lists.rubyonrails.org
>http://lists.rubyonrails.org/mailman/listinfo/rails
--
Posted with http://DevLists.com. Sign up and save your time!