How to insert special HTML-symbols with HAML

AntonAL picture AntonAL · Jun 10, 2011 · Viewed 35.3k times · Source

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 ?

Answer

HakonB picture HakonB · Jun 10, 2011

How about

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