Browse Source

append title attribute on address does not match alt value

main
yggverse 7 months ago
parent
commit
3677e090c4
  1. 14
      src/Pango.php

14
src/Pango.php

@ -160,6 +160,19 @@ class Pango @@ -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 @@ -172,6 +185,7 @@ class Pango
$alt
)
);
}
$escaped[] = $index;
}

Loading…
Cancel
Save