Skip to content

Commit

Permalink
escape all url entities
Browse files Browse the repository at this point in the history
  • Loading branch information
yggverse committed Apr 16, 2024
1 parent 3d86054 commit f12ff02
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/Pango.php
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,9 @@ public static function fromGemtextBody(
{
$lines[$index] = sprintf(
'<a href="%s">%s</a>',
$address,
self::escape(
$address
),
self::escape(
$alt
)
Expand All @@ -177,7 +179,9 @@ public static function fromGemtextBody(
{
$lines[$index] = sprintf(
'<a href="%s" title="%s">%s</a>',
$address,
self::escape(
$address
),
self::escape(
urldecode(
$address
Expand Down

0 comments on commit f12ff02

Please sign in to comment.