Rails 3's link_to('»', url) won't work if it is » or other entities
-
04-10-2019 - |
Question
because it will not show up as »
but will show up as »
. Is there a way to show it?
Solution
Try:
link_to "»".html_safe, url
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow