{{-- Custom HTML Widget --}}
@php
    $cfg = $widget->content_with_defaults;
    $htmlContent = $cfg['html_content'] ?? '';
    $sanitized = $cfg['sanitized'] ?? true;
    
    if ($sanitized) {
        $htmlContent = strip_tags($htmlContent, '<div><span><p><a><br><strong><em><u><h1><h2><h3><h4><h5><h6><ul><ol><li><img><table><thead><tbody><tr><td><th><button><form><input><textarea><select><option>');
    }
@endphp

@if(!empty($htmlContent))
<div class="custom-html-widget">
    {!! $htmlContent !!}
</div>
@endif
