Zing. compile-to-PHP template engine GitHub ↗

Echoing

Use {{ }} to output a value with HTML escaping via htmlspecialchars():

<p>{{ $user->name }}</p>

Use {!! !!} for raw output without escaping:

<div>{!! $rawHtml !!}</div>

Raw output should only be used for content you trust — never for user input.