In my view I have:
= image_tag i.object.image(:big)
This makes my browser render the image,
I would like instead my browser to show the HTML tag, I need this to get the image tag ready ready to be copy pasted somewhere else.
I've tried with:
= h image_tag i.object.image(:big)
but the image is rendered as well
试试这个= "#{image_tag i.object.image(:big)}"
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.