test inlining
This commit is contained in:
parent
bf3a523ab2
commit
a904f050f6
@ -17,6 +17,7 @@ function inlineLocalStylesFromHref($inputString) {
|
|||||||
$cssContent = preg_replace_callback('/url\(["\']?\/(.*?)(?:[?#].*?)?["\']?\)/i', function($urlMatch) {
|
$cssContent = preg_replace_callback('/url\(["\']?\/(.*?)(?:[?#].*?)?["\']?\)/i', function($urlMatch) {
|
||||||
// Extract the URL value
|
// Extract the URL value
|
||||||
$url = $urlMatch[1];
|
$url = $urlMatch[1];
|
||||||
|
echo "Hehe: $url";
|
||||||
|
|
||||||
// Get the content of the external file specified in the url()
|
// Get the content of the external file specified in the url()
|
||||||
$fileContent = file_get_contents($_SERVER['DOCUMENT_ROOT'] . '/' . $url);
|
$fileContent = file_get_contents($_SERVER['DOCUMENT_ROOT'] . '/' . $url);
|
||||||
|
Loading…
Reference in New Issue
Block a user