Home Ask Login Register

Developers Planet

Your answer is one click away!

SeattleAls February 2016

Element shown as text in Tooltipster (tooltipster.js)

I am using Tooltipster.js to apply a fancy tooltip. The problem is that when I set a text in the tooltip, it gets rendered as it is, which I don't want. I want it to show as a rendered html.


This is my code:

var total = "<p><strong>text</strong></p>";

    content: total,
    multiple: true

Now, the tooltip shows it to me as <p><strong>text</strong></p>. I want it to look as text.

How do I do that?


SeattleAls February 2016

I got it.

I have to add contentAsHTML: true.

Looked at other help in Stackoverflow.

Post Status

Asked in February 2016
Viewed 3,221 times
Voted 10
Answered 1 times


Leave an answer

Quote of the day: live life