Skip to content

Commit

Permalink
Fix Truncated tooltip when single or double quote is present.
Browse files Browse the repository at this point in the history
Closes #2061
  • Loading branch information
ghormann committed Nov 23, 2024
1 parent 998405d commit a6cdcce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion www/common.php
Original file line number Diff line number Diff line change
Expand Up @@ -2171,7 +2171,7 @@ function PrintToolTip($setting)
(isset($settingInfos[$setting])) &&
(isset($settingInfos[$setting]['tip']))
) {
$tip = $settingInfos[$setting]['tip'];
$tip = htmlentities($settingInfos[$setting]['tip']);
echo "<span id='" . $setting . "_tip' data-bs-toggle='tooltip' data-bs-html='true' data-bs-placement='auto' data-bs-title='" . $tip . "'>";
echo "<img id='$setting" . "_img' src='images/redesign/help-icon.svg' class='icon-help'>";
echo "</span>";
Expand Down

0 comments on commit a6cdcce

Please sign in to comment.