Is there a way to use Chapter ASCII codes in rails link helpers?
It:
<%= link_to "My Trademark &153;", trade_mark_path %>
Forms
When I Really Need It: My Trademark ™
Can I use ASCII codes in a URL helper? I can always resort to creating the link manually, but it is really ugly.
The simplest answer is not to use HTML entities, but instead use Unicode source code files with Unicode literal characters, for example. actually put:
<%= link_to "My Trademark™", trade_mark_path %>
in your view. However, if you need to, you can simply:
<%= link_to("My Trademark™", trade_mark_path).html_safe %>
to disable automatic removal of Rails from Rails.
raw :
<%= link_to raw("My Trademark &153;"), trade_mark_path %>
http://apidock.com/rails/ActionView/Helpers/OutputSafetyHelper/raw