MyFunnyDev

web, coding and beyond

auto escaping html in Rails to protect from XSS

with one comment

Tonight I found a plugin to auto escape html in order to protect from XSS attacks. I’m not sure why rails doesn’t do it out of the box (you have to use h() helper). Anyway the plugin is called xss_terminate and it can be found here. The cool thing about it is that now you can forget about h() :) .

Written by MichaƂ Kuklis

July 29th, 2009 at 9:24 pm

Posted in Uncategorized

Tagged with

One Response to 'auto escaping html in Rails to protect from XSS'

Subscribe to comments with RSS or TrackBack to 'auto escaping html in Rails to protect from XSS'.

  1. The escaping will be default in Rails 3.

Leave a Reply