<?php if (!empty($breadcrumbs)): ?>
<nav class="breadcrumbs" aria-label="Breadcrumb">
    <?php foreach ($breadcrumbs as $index => $crumb): ?>
        <?php if ($index > 0): ?><span aria-hidden="true">›</span><?php endif; ?>
        <span><?= htmlspecialchars($crumb, ENT_QUOTES, 'UTF-8') ?></span>
    <?php endforeach; ?>
</nav>
<?php endif; ?>
