This is not new to those closely watching updates regarding Rails development: for Rails 3 applications, there is no need to use the h() function to escape html for security reasons.

<%= h @something %>
is now the same as
<%= @something %>
To display the HTML, use:
<%= @something.html_safe %>

To have this feature for Rails 2.3.x applications, there is a need to install the Rails XSS plugin.

Some installation notes:

Install rails 2.3.5 or higher, or freeze rails from 2-3-stable.

gem install rails 

Install erubis

gem install erubis

Install this plugin

script/plugin install git://

I you are using exception notification plugin for production (which, by the way, you should), this fork of the original plugin might help you avoid any weird issues related to the XSS plugin and Rails 2.3.5:

script/plugin install git://

By the way, what does the h() stand for?

Thanks to Jesse for informing me, h stands for html_escape (because that's just what it does).


HAML escape html option

Reading on this post, it seems that it's a much better option for me right now.

gem install haml (current version today is 2.2.7)

and add: 
below the Rails config on environment.rb
comments powered byDisqus

Hello! I am Kat. I've been a developer for several years. When I'm not sitting down, reading and working for long hours, I am traveling to some place of interest.
If you want to reach out, you can send me an email or add me up on Google Plus.