Rezwana
Rezwana

Reputation: 132

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

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

Upvotes: 1

Views: 1739

Answers (2)

Giulio Bambini
Giulio Bambini

Reputation: 4755

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

Upvotes: 5

Daniel A. White
Daniel A. White

Reputation: 190907

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

Upvotes: 3

Related Questions