Browse Source

escape all url entities

main
yggverse 7 months ago
parent
commit
f12ff02616
  1. 8
      src/Pango.php

8
src/Pango.php

@ -166,7 +166,9 @@ class Pango
{ {
$lines[$index] = sprintf( $lines[$index] = sprintf(
'<a href="%s">%s</a>', '<a href="%s">%s</a>',
$address, self::escape(
$address
),
self::escape( self::escape(
$alt $alt
) )
@ -177,7 +179,9 @@ class Pango
{ {
$lines[$index] = sprintf( $lines[$index] = sprintf(
'<a href="%s" title="%s">%s</a>', '<a href="%s" title="%s">%s</a>',
$address, self::escape(
$address
),
self::escape( self::escape(
urldecode( urldecode(
$address $address

Loading…
Cancel
Save