Blade Laravel का templating engine है — यह आपको dynamic HTML को clean syntax ({{ }}, @directives) के साथ लिखने देता है जो plain PHP में compile होता है। यह template inheritance, components, और built-in XSS protection प्रदान करता है, views को readable और secure रखता है।
डेटा आउटपुट करना (auto-escaped)
<h1>{{ $title }}</h1> {{-- echoes $title, AUTO-ESCAPED (XSS-safe) --}}
<p>{{ $user->name }}</p>
{!! $trustedHtml !!} {{-- unescaped — use ONLY for trusted HTML --}}
