How can I use HTML tags in a Laravel localization file?
Using Laravel 5.6 and above, can use the __
helper along with the blade syntax:
{!! __('pagination.next') !!}
Had to do those for the pagination blade templates.
Use {!! !!}
instead of {{ }}
to prevent escaping:
{!! trans('nav.find') !!}
Using @lang
directive:
@lang('nav.find')
Source: Retrieving Translation Strings