Is there any way to support HTML tags code inside bootstrap Tooltip?

偶尔善良 提交于 2019-12-23 05:07:47

问题


Recently I'm facing problem with Bootstrap 3 Tooltip when I'm trying to add some html code inside title attribute. It shows me plain html tags code.

Here is the problem


回答1:


For getting html formatted result on tooltip you have to use html: true when initialize the bootstrap tooltip

Example: $('[data-toggle="tooltip"]').tooltip({ html: true });




回答2:


Yep. Depending on how you use it, you have to specify the html option as true. Read the docs here.



来源:https://stackoverflow.com/questions/43285259/is-there-any-way-to-support-html-tags-code-inside-bootstrap-tooltip

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!