In the Tippy, I want to show tags in tooltip’s. For this,
I tried:
<i style="font-size:20px;" class="fa fa-info tippy" data-tippy-content="You do not need to add <style>....</style> tags."></i>
OR
<i style="font-size:20px;" class="fa fa-info tippy" data-tippy-content="You do not need to add <style>...</style> tags."></i>
But both of them not show tooltip’s content correctly. I want it like this (This image created in Photoshop):
EDIT: But both of them show like this:
2
Answers
You can add the
allowHTML: false
option to your.tippy
class to make your HTML render as text rather than actually rendering the markup:If you leave a space between the escaped characters, it seems to show your expected result.