How can I use HTML tags in a Laravel localization file?
问题 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 causes it to be escaped when outputted to a blade. For example, here is my language file entry: return [ 'nav' => [ 'find' => '<strong>Find</strong> Your Home', ] ]; When I call it from within a blade: (I've tried using triple braces as well.) {{ trans('base.nav.find') }} It outputs: <strong>Find</strong> Your Home I could