From 699ed3dcd9ddd44ac0213457c96131413a1647de Mon Sep 17 00:00:00 2001 From: Nonimart Date: Mon, 23 Jun 2025 16:53:44 +0200 Subject: [PATCH] TEST trying to fix problem with id attributes for links --- includes/utilities.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/utilities.php b/includes/utilities.php index 7e2333d..b9954fc 100644 --- a/includes/utilities.php +++ b/includes/utilities.php @@ -120,6 +120,7 @@ function apply_footnotes_urls_to_content($content) $links = $dom->getElementsByTagName('a'); foreach ($links as $key => $link) { + write_log($key); if ($link->hasAttribute('class') && strpos($link->getAttribute('class'), 'footnote-reference') !== false) { $link->setAttribute('id', 'footnote-' . $key + 1); write_log($link->getAttribute('id'));