I’m using http://twitter.github.com/bootstrap/javascript.html#tooltips on a app.
I have this rails code:
<%= link_to t('.shipping_details'), "#", :rel => "tooltip", :title => "#{render 'orders/partials/shipping_cost_detail', :o => o}" %>
The problem is that I can’t render html code inside of _shipping_cost_detail.html.erb
For example If I add a <div></div> or <br> is visible like text on tooltip.
How can I render html inside of tooltip?
When you are initialising the tooltip there is a
htmlproperty, which specifies whether you are inserting text or html. By default this isfalse– you need to set it totrue.Something like this: