Browse Source

append title attribute on address does not match alt value

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

36
src/Pango.php

@ -160,18 +160,32 @@ class Pango
} }
} }
$lines[$index] = sprintf( if ($alt == $address)
'<a href="%s" title="%s">%s</a>', {
$address, $lines[$index] = sprintf(
self::escape( '<a href="%s">%s</a>',
urldecode( $address,
$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; $escaped[] = $index;
} }

Loading…
Cancel
Save