From 76cafbda3aa5e29c2cfc06a6e337e0df288c73ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bruno=20Ryb=C3=A1rsky?= Date: Sun, 4 Feb 2024 10:30:39 +0100 Subject: [PATCH] test inlining --- lib/inliner.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/inliner.php b/lib/inliner.php index 9180fd5..2a037b6 100644 --- a/lib/inliner.php +++ b/lib/inliner.php @@ -1,7 +1,7 @@ tags with href attribute for CSS files - $pattern = '//i'; + $pattern = '//i'; // Use preg_replace_callback to replace matched link tags with inline styles $outputString = preg_replace_callback($pattern, function($match) { @@ -20,6 +20,7 @@ function inlineLocalStylesFromHref($inputString) { return $outputString; } + function inlineScriptFromSrc($inputString) { // Define the regular expression pattern to match