From a904f050f65d24a0ab5bec3292d63de05fd4f9e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bruno=20Ryb=C3=A1rsky?= Date: Sun, 4 Feb 2024 10:35:27 +0100 Subject: [PATCH] test inlining --- lib/inliner.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/inliner.php b/lib/inliner.php index 110bdcc..efc401b 100644 --- a/lib/inliner.php +++ b/lib/inliner.php @@ -17,6 +17,7 @@ function inlineLocalStylesFromHref($inputString) { $cssContent = preg_replace_callback('/url\(["\']?\/(.*?)(?:[?#].*?)?["\']?\)/i', function($urlMatch) { // Extract the URL value $url = $urlMatch[1]; + echo "Hehe: $url"; // Get the content of the external file specified in the url() $fileContent = file_get_contents($_SERVER['DOCUMENT_ROOT'] . '/' . $url);