skip to Main Content

How can I make the ‘Intelligence (AI)’ as second line? Is it possible to do break line in @section for h1 title?

   @section('title','Artificial Intelligence (AI)')

2

Answers


  1. you can try this for multiline

    @section('title')
    
    Artificial Intelligence
    <br>
    (AI)
    
    @endsection
    
    Login or Signup to reply.
  2. If the issue is that the HTML is being escaped you can try and use the HTML helper class:

    @section('title', new IlluminateSupportHtmlString('Artificial<br>Intelligence (AI)'))
    

    which should show the string as unescaped HTML

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search