How can I use HTML tags in a Laravel localization file?

后端 未结 3 779
臣服心动
臣服心动 2020-12-30 18:36

I\'m trying to utilize Laravel\'s localization feature, but I need to be able to put emphasis or bolden a portion of a phrase. Inserting a HTML tag into the language file ca

3条回答
  •  悲&欢浪女
    2020-12-30 19:00

    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.

提交回复
热议问题