What is the best way to embed embedded HTML in the body of a link generated using the link_to method?
Basically I want the following:
<a href="##">This is a <strong>link</strong></a>
I tried to do this as suggested in the Rails and <span> tag , but with no luck. My code is as follows:
item_helper.rb
def picture_filter
item_view.html.erb
#... <%=raw picture_filter %> #...
ruby-on-rails link-to
Ryan Mar 15 2018-11-11T00: 00Z
source share