mirror of
https://github.com/YGGverse/gemini-php.git
synced 2026-03-31 08:55:28 +00:00
append title attribute on address does not match alt value
This commit is contained in:
parent
b0f8e62ce5
commit
3677e090c4
1 changed files with 25 additions and 11 deletions
|
|
@ -160,18 +160,32 @@ class Pango
|
|||
}
|
||||
}
|
||||
|
||||
$lines[$index] = sprintf(
|
||||
'<a href="%s" title="%s">%s</a>',
|
||||
$address,
|
||||
self::escape(
|
||||
urldecode(
|
||||
$address
|
||||
if ($alt == $address)
|
||||
{
|
||||
$lines[$index] = sprintf(
|
||||
'<a href="%s">%s</a>',
|
||||
$address,
|
||||
self::escape(
|
||||
$alt
|
||||
)
|
||||
),
|
||||
self::escape(
|
||||
$alt
|
||||
)
|
||||
);
|
||||
);
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
$lines[$index] = sprintf(
|
||||
'<a href="%s" title="%s">%s</a>',
|
||||
$address,
|
||||
self::escape(
|
||||
urldecode(
|
||||
$address
|
||||
)
|
||||
),
|
||||
self::escape(
|
||||
$alt
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
$escaped[] = $index;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue