Less home code more F3

This commit is contained in:
julien
2026-03-28 23:29:06 +01:00
parent f7480eafe7
commit 1c8c22e12c
12 changed files with 107 additions and 116 deletions

View File

@@ -50,10 +50,10 @@ class MarkdownService extends Prefab
$alt = $a[1];
}
if ($alt === '') {
$alt = htmlspecialchars($item['alt'], ENT_QUOTES, 'UTF-8');
$alt = Base::instance()->encode($item['alt']);
}
$url = htmlspecialchars($item['url'], ENT_QUOTES, 'UTF-8');
$url = Base::instance()->encode($item['url']);
return '<img src="' . $url . '" alt="' . $alt . '" loading="lazy" decoding="async">';
}, $html) ?? $html;