# Disable erubis xss escaping

**URL:** <https://www.ruby-forum.com/t/disable-erubis-xss-escaping/189743>\
**Category:** Rails\
**Created:** [June 7, 2010, 12:17am UTC](https://www.ruby-forum.com/t/disable-erubis-xss-escaping/189743 "2010-06-07T00:17:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![arvias](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/ac91a4/32.png) [@arvias](https://www.ruby-forum.com/u/arvias)\
**Post date:** [June 7, 2010, 12:17am UTC](https://www.ruby-forum.com/t/disable-erubis-xss-escaping/189743/1 "2010-06-07T00:17:36Z")

</div>

Hi.

Is there a way to disable erubis auto escaping? I understand the  
implications, and in our project everything in sanitized during input.

On the other hand, we use a lot of:  
\<%= “#{translate something} value #{translate another thing}  
#{link\_to …}” if something else %\>

Because of string interpolation everything gets borked.

–  
M.
