diff options
| author | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2024-06-03 12:32:36 +0000 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+github@gmail.com> | 2024-06-04 12:18:28 +0200 |
| commit | e2371bc2ad08f3d03552bd0054bb01ea590ffe32 (patch) | |
| tree | a59c05002b1d1204a8ae246319ccb59edafd903a | |
| parent | bc5e1467fc440af72b38199e31bdf031bcdb3b48 (diff) | |
fixes #4251
Closes #4251
Merge request studip/studip!3081
| -rw-r--r-- | templates/shared/tooltip.php | 9 |
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> |
