Reputation: 1780
<%= f.button "Vote ▲" %>
I'm trying to print text + a Unicode triangle. Can't find the syntax. Thanks!
Upvotes: 3
Views: 406
Reputation: 107728
By default, strings output in Rails views are automatically escaped.
You will need to stop it from escaping it by telling Rails that the string is HTML safe:
"Vote ▲".html_safe
Upvotes: 3