Allow heading tags (h1-h6) in ContentSanitizer so news editor headings render

This commit is contained in:
2026-06-04 07:52:57 +02:00
parent 0b33a1b074
commit 15870ddb1f
191 changed files with 15453 additions and 1786 deletions

View File

@@ -6,7 +6,8 @@
</div>
<div class="grid gap-4 md:grid-cols-2 xl:grid-cols-3">
@foreach($relatedEntities as $entity)
<a href="{{ $entity['url'] ?? '#' }}" class="group overflow-hidden rounded-[24px] border border-white/[0.08] bg-white/[0.03] transition hover:-translate-y-0.5 hover:border-white/[0.16]">
@php($isExternalSource = ($entity['entity_type'] ?? null) === 'source')
<a href="{{ $entity['url'] ?? '#' }}" @if($isExternalSource) target="_blank" rel="noopener noreferrer" @endif class="group overflow-hidden rounded-[24px] border border-white/[0.08] bg-white/[0.03] transition hover:-translate-y-0.5 hover:border-white/[0.16]">
<div class="relative aspect-[16/9] overflow-hidden bg-black/20">
@if(!empty($entity['image']))
<img src="{{ $entity['image'] }}" alt="{{ $entity['title'] }}" class="h-full w-full object-cover transition duration-300 group-hover:scale-[1.04]">