Цю сторінку ще не перекладено українською, тому нижче англійська версія.

tooltip_html() html()

Tooltip text as safe HTML: the text of tooltip() under a Tailwind CSS driver goes through it.

html()->tooltip_html($text)

Опції

ОпціяЗначення
$textText; <b>, <i>, <code> and <br> without attributes stay (balanced), other tags, attributes, comments and script / style content are dropped, the rest is escaped; a line break becomes <br>.

Приклад

Use tip(), bold

Код

return html()->tooltip_html('Use <code>tip()</code>, <b onclick="x()">bold</b><img src=x onerror=alert(1)>');

Див. також: html/tooltip