Rails appears to be converting the ampersand at the beginning of the utf-8 entity to an HTML entity: &
So ▲
becomes ▲
but I would like to display a downward arrow instead, which is what the utf-8 entity would normally be.
I'm using Rails 2.3.8 and Ruby 1.8.7.
Here is what the view looks like:
<%= get_arrow_from_helper(order) %>
And here is what the helper looks like:
def get_arrow_from_helper(order)
arrow = order == "ASC" ? "▲" : "▼"
html = "<div>#{arrow}</div>"
return html
end