test inlining

This commit is contained in:
Bruno Rybársky 2024-02-04 10:35:27 +01:00
parent bf3a523ab2
commit a904f050f6

@ -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);