Break lines in blade translation files
问题 In my view I have <p>{{ trans('mission-vision-page.mission-description') }}</p> I've put a block of text in my language file, but I want to maintain the new lines. I've tried: 1. return ['mission-description' => 'line 1 <br /> line 2'] 2. return ['mission-description' => 'line 1 \n line 2'] 3. $newLine = '<br />'; return ['mission-description' => 'line 1 ' . $newLine . ' line 2'] I know probably there's a better way to accomplish this, but in my en.php file can I add new lines? 回答1: use {!! !