Search code examples
rubyruby-on-rails-4zurb-foundationzurb-foundation-5

Rails 4: HTML Code Inside Link_to


On the output I'd like to have this:

<%= link_to '&pound;', '#' %>

to show:

£

I wish not to input "£" as is, I need to input the html code for £. Is there a way?

I'm trying to accomplishe this: http://foundation.zurb.com/docs/components/alert_boxes.html


Solution

  • It should work

    '&pound;'.html_safe