# Way to keep ampersand from getting sanitized?

**URL:** <https://www.ruby-forum.com/t/way-to-keep-ampersand-from-getting-sanitized/174442>\
**Category:** Rails\
**Created:** [August 26, 2009, 8:36pm UTC](https://www.ruby-forum.com/t/way-to-keep-ampersand-from-getting-sanitized/174442 "2009-08-26T20:36:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![p8yton](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/ba8739/32.png) [@p8yton](https://www.ruby-forum.com/u/p8yton)\
**Post date:** [August 26, 2009, 8:36pm UTC](https://www.ruby-forum.com/t/way-to-keep-ampersand-from-getting-sanitized/174442/1 "2009-08-26T20:36:43Z")

</div>

I have an error message with an html character entity in it ( µ/  
µ ). My trouble is, rails swaps my & with & - leaving me with  
µ getting shown literally in the message rather than a nice,  
neat Greek mu:  
ì.  
I should probably add that the error message is set in a validate  
routine on a model - via errors.add() - not in view code.

Is there a trick to this? I suppose if worse comes to worse I can  
always substitute a ‘u’ :\

Thanks for any help!  
Peyton
