append title attribute on address does not match alt value

This commit is contained in:
yggverse 2024-04-16 20:15:00 +03:00
parent b0f8e62ce5
commit 3677e090c4

View file

@ -160,6 +160,19 @@ class Pango
}
}
if ($alt == $address)
{
$lines[$index] = sprintf(
'<a href="%s">%s</a>',
$address,
self::escape(
$alt
)
);
}
else
{
$lines[$index] = sprintf(
'<a href="%s" title="%s">%s</a>',
$address,
@ -172,6 +185,7 @@ class Pango
$alt
)
);
}
$escaped[] = $index;
}