atomiks / tippyjs

Tooltip, popover, dropdown, and menu library
https://atomiks.github.io/tippyjs/
MIT License
11.78k stars 517 forks source link

`content` doesn't render HTML, renders text instead #1126

Closed hirasso closed 1 year ago

hirasso commented 1 year ago

Bug description

When using tippy's content option like this:

tippy(el, {
    content: 'look at me, <strong>I'm strong</strong>'
});

Tippy will render the HTML string as a string instead of HTML:

image

Reproduction

CodePen link: https://codepen.io/atomiks/pen/yvwQyZ

hirasso commented 1 year ago

Damnit, I was browsing the old docs 😄 ...allowHTML: true did the trick.