A Laravel Blade directive for converting newline characters to breaks.
You can install the package via composer:
composer require sandervanhooft/laravel-blade-nl2br
@nl2br("Hello\n world!")
// Hello<br \> world!
composer test
Please see CHANGELOG for more information what has changed recently.
Please see CONTRIBUTING for details.
If you discover any security related issues, please email info@sandervanhooft.com instead of using the issue tracker.
- Sander van Hooft - www.sandervanhooft.com
- Appstract for blade directive testing methods
- All Contributors
Subscribe to the newsletter at sandervanhooft.com to learn about the latest Laravel packages and tricks.
The MIT License (MIT). Please see License File for more information.