Displaying Unescaped Data on laravel blade file

developeralamin

Al-Amin Islam

Posted on May 27, 2024

Displaying Unescaped Data on laravel blade file

By default, Blade statements are automatically sent through PHP's htmlspecialchars function to prevent XSS attacks. If you do not want your data to be escaped, you may use the following syntax:

Hello, {!! $name !!}.
Enter fullscreen mode Exit fullscreen mode
💖 💪 🙅 🚩
developeralamin
Al-Amin Islam

Posted on May 27, 2024

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related