test inlining

This commit is contained in:
Bruno Rybársky 2024-02-04 10:28:34 +01:00
parent 729a80b647
commit 3c21c5e2f8

@ -8,6 +8,8 @@ function inlineLocalStylesFromHref($inputString) {
// Extract the href attribute value
$href = isset($match[1]) ? $match[1] : $match[2];
$fname = $_SERVER['DOCUMENT_ROOT'] . '/' . $href;
echo "from $fname";
// Get the content of the local CSS file
$cssContent = file_get_contents($_SERVER['DOCUMENT_ROOT'] . '/' . $href);