From fcb1460859c02aa4eb8aa36d2fb6c59eaa874b78 Mon Sep 17 00:00:00 2001 From: "E. S." Date: Wed, 24 Jul 2024 17:42:46 +0300 Subject: [PATCH] fix minor bug in references' links titles --- lib/markup.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/markup.php b/lib/markup.php index 69814df..8bb63ab 100644 --- a/lib/markup.php +++ b/lib/markup.php @@ -22,7 +22,7 @@ class markup { if (pcre_no_error($result)) { $reftitles_map = []; foreach ($matches[2] as $i => $refname) { - $reftitles_map[$refname] = trim(strip_tags($matches[3][$i])); + $reftitles_map[$refname] = trim(htmlspecialchars_decode(strip_tags($matches[3][$i]))); } $span_opening_tag = ''; $html = preg_replace($re, '

'.$span_opening_tag.'$1 $3

', $html);