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