This commit is contained in:
the-djmaze 2023-03-10 19:38:09 +01:00
parent 670271f257
commit 1b49399c46

View file

@ -137,9 +137,9 @@ abstract class HtmlUtils
$oElement->removeAttribute('data-x-src'); $oElement->removeAttribute('data-x-src');
} }
foreach ($xpath->query('//*[@data-x-style-url]') as $oElement) {
// style attribute images // style attribute images
$aCid = \array_merge($aCid, \json_decode($oElement->getAttribute('data-x-style-url'), true)); foreach ($xpath->query('//*[@data-x-style-url]') as $oElement) {
$aCid = \json_decode($oElement->getAttribute('data-x-style-url'), true);
$oElement->removeAttribute('data-x-style-url'); $oElement->removeAttribute('data-x-style-url');
if ($aCid) { if ($aCid) {
foreach ($aCid as $sCidName => $sCid) { foreach ($aCid as $sCidName => $sCid) {