I've got a Rails 3 helper which needs to generate elements which might have HTML entities in the attribute values. For example:
content_tag(:input, nil, :type => 'button', :value => 'Redo ↻')
I end up with this: <input type="button" value="Redo ↻" />
but what I want is: <input type="button" value="Redo ↻" />
.
How can I tell Rails not to escape HTML entities in my content tag attributes?