# Changin of & to &amp;

**URL:** <https://www.ruby-forum.com/t/changin-of-to-amp/186308>\
**Category:** Rails\
**Created:** [April 4, 2010, 2:13pm UTC](https://www.ruby-forum.com/t/changin-of-to-amp/186308 "2010-04-04T14:13:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rahul\_m](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/43a26b/32.png) [@rahul\_m](https://www.ruby-forum.com/u/rahul_m)\
**Post date:** [April 4, 2010, 2:13pm UTC](https://www.ruby-forum.com/t/changin-of-to-amp/186308/1 "2010-04-04T14:13:21Z")

</div>

i have in varible people-&-culture  
want to show it people-&-culture  
any special function to change in to html except gsub()

---

<div class="post-metadata">

**Author:** ![rahul\_m](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/43a26b/32.png) [@rahul\_m](https://www.ruby-forum.com/u/rahul_m)\
**Post date:** [April 4, 2010, 3:59pm UTC](https://www.ruby-forum.com/t/changin-of-to-amp/186308/2 "2010-04-04T15:59:15Z")

</div>

On Sun, Apr 4, 2010 at 5:12 AM, Rahul M. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> i have in varible people-&-culture  
> want to show it people-&-culture  
> any special function to change in to html except gsub()

Use h(variable), a helper method available in your views for html  
escaping.
