# Rails 2.3.8 and I18n

**URL:** <https://www.ruby-forum.com/t/rails-2-3-8-and-i18n/189200>\
**Category:** Rails\
**Created:** [May 26, 2010, 6:15pm UTC](https://www.ruby-forum.com/t/rails-2-3-8-and-i18n/189200 "2010-05-26T18:15:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![LoSSSSc\_Guitaut](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/3ec8ea/32.png) [@LoSSSSc\_Guitaut](https://www.ruby-forum.com/u/LoSSSSc_Guitaut)\
**Post date:** [May 26, 2010, 6:15pm UTC](https://www.ruby-forum.com/t/rails-2-3-8-and-i18n/189200/1 "2010-05-26T18:15:59Z")

</div>

Hi all!

I’m having some troubles since I’m using rails 2.3.8 and XSS plugin. All  
data  
from I18n yaml files is now escaped! That’s not what I want, and it  
seems  
pretty logic that data from these files should be safe for html.

So my question is: how do I do that please? I already tried with an  
initializer and alias\_method\_chain on the I18n module translate method,  
but so  
far no luck (works great in console but not in views…)

Thanks!

---

<div class="post-metadata">

**Author:** ![LoSSSSc\_Guitaut](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/3ec8ea/32.png) [@LoSSSSc\_Guitaut](https://www.ruby-forum.com/u/LoSSSSc_Guitaut)\
**Post date:** [May 27, 2010, 12:09pm UTC](https://www.ruby-forum.com/t/rails-2-3-8-and-i18n/189200/2 "2010-05-27T12:09:34Z")

</div>

Ok just found that now I have to add ‘html’ to all I18n keys that use  
html in  
their translations for this to work properly…

While I can understand this approach, it’s quite annoying when migrating  
an  
app from a previous version ☹

Le mercredi 26 mai 2010 18:13:39, LoÃ¯c Guitaut a Ã©crit :
