By default, the rails slip away from the contents before printing. You must explicitly declare that the content is safe to exit:
You can do this using the helper helper or the html_safe string method:
content_tag(:input, nil, :type => 'button', :value => 'Redo ↻'.html_safe)
or
content_tag(:input, nil, :type => 'button', :value => raw('Redo ↻'))
source share