Search code examples
ruby-on-rails-3special-charactershaml

How to insert special HTML-symbols with HAML


When I'm saying:

%p= item.price + " dollars"

I'm getting

50&nbsp ;dollars

instead of having non-breakable space symbol.

How to insert this and another special symbols using HAML ?


Solution

  • How about

    %p= item.price + " dollars".html_safe