Can I use html tags in twitter-bootstrap popover data-content?

前端 未结 2 1890
-上瘾入骨i
-上瘾入骨i 2020-12-23 21:31

I\'m using Twitter-Bootstrap within a Rails 3.1.3 application. I have numerous elements with popovers like:



        
2条回答
  •  执念已碎
    2020-12-23 22:08

    Yes, you can do that, but you need to call html_safe on your string (if the string is generated by Rails)

    link_to 'Q', '#', :title => "Quality", :rel => 'popover', "data-content" => "Did they do a good job? 
    1. for Really Nice
    2. ...
    ".html_safe }

提交回复
热议问题