Displaying Data
Blade's echo statements {{ }}
are automatically sent through
PHP's htmlspecialchars
function to prevent XSS attacks.
Display the contents of the name variable:
Hello, {{ $name }}.
Display results of a PHP function:
The current UNIX timestamp is {{ time() }}.
Display data without escaping with htmlspecialchars
Hello, {!! $name !!}.
Comments