Is there any way to support HTML tags code inside

2019-06-09 12:31发布

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

enter image description here

2条回答
贼婆χ
2楼-- · 2019-06-09 12:42

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 });

查看更多
我想做一个坏孩纸
3楼-- · 2019-06-09 13:09

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

查看更多
登录 后发表回答