Quantcast
Viewing all articles
Browse latest Browse all 2

Answer by user2126478 for Parse Images With Feedjira

Use sanitize. In your DB, the image-field is like , and when you try to "display" it in your view, rails still give you the url. What you can do is to use sanitize

Ex.

<% @entry.each do |t|%>
   <h3><%= link_to t.title, t.url %></h3>
   <p><%= t.published %></p>
   <p><%= sanitize t.summary %></p>
<% end %>

This will give a thumbs-up to rails and "display" the "code" as a actual image.


Viewing all articles
Browse latest Browse all 2

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>