aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--templates/shared/tooltip.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/templates/shared/tooltip.php b/templates/shared/tooltip.php
index 8dbcd38..513700f 100644
--- a/templates/shared/tooltip.php
+++ b/templates/shared/tooltip.php
@@ -1,4 +1,11 @@
+<?php
+/**
+ * @var bool $important
+ * @var bool $html
+ * @var string $text
+ */
+?>
<span class="tooltip tooltip-icon <? if ($important) echo 'tooltip-important'; ?>"
- tabindex="0" aria-label="<?= $html ? kill_format($text) : htmlReady($text) ?>">
+ tabindex="0" aria-label="<?= $html ? htmlReady(strip_tags($text)) : htmlReady($text) ?>">
<span class="tooltip-content"><?= $html ? $text : htmlReady($text) ?></span>
</span>