From ae3cc383ba2611bda5823ac15613009598ca40a5 Mon Sep 17 00:00:00 2001 From: Nonimart Date: Mon, 23 Jun 2025 16:57:19 +0200 Subject: [PATCH] TEST trying to fix problem with id attributes for links --- includes/utilities.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/utilities.php b/includes/utilities.php index b9954fc..71e5903 100644 --- a/includes/utilities.php +++ b/includes/utilities.php @@ -119,8 +119,9 @@ function apply_footnotes_urls_to_content($content) @$dom->loadHTML(mb_convert_encoding($content, 'HTML-ENTITIES', 'UTF-8'), LIBXML_HTML_NOIMPLIED | LIBXML_HTML_NODEFDTD); $links = $dom->getElementsByTagName('a'); + phpinfo(); foreach ($links as $key => $link) { - write_log($key); + // 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'));