How to embed HTML objects in link_to rails?
For example, & # 10029 will give you a star symbol, how can I insert it into a quote?
For instance,
<%= link_to " ✭ Home", root_path %>
Thank!
Try the following:
<%= link_to raw("✭ Home"), root_path %>
Use this method to escape:
Do not use html_safe () unless you are sure your string is non-zero. Instead, use the raw () method, which will not throw an exception on nil.
Api Rails raw ()
Source: https://habr.com/ru/post/1569044/More articles:how to do yo angular download css boot theme - angularjsHow to get email id from facebook using grails graphic plugin - facebook-oauthBind an event to a child of a directive in a bind function - angularjsCreating / managing single rooms with Ratchet? - phpHMVC and HTML component - htmljstl Remove all spaces from a string - jstlAzure webjob deployment in stop mode - azure-webjobsКак предотвратить запуск Azure WebJob после публикации? - azure-webjobsSQLite iOS warning: comparing constant 101 with an expression of type BOOL is always wrong - comparisonhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1569049/want-azure-webjobs-to-maintain-running-state-running-or-stopped-following-publishing-of-web-app&usg=ALkJrhgVzQ2Ng390R3plY0DtT3_a1dYojwAll Articles