Less home code more F3
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user