title: Why did laravel wrap my sidebar in an em tag?
body: <p>**Using Laravel 5.8.31 &amp; Bootstrap 4. Browser: Chrome v. 76.0.3 and Opera 62.0.33 **</p>
  
  <p>I was testing my CRUD functions by deleting a post. After deletion, the controller redirects back to my post index page. When the page loaded, the bootstrap side bar wrapped down below the other posts, rather than being on the right. Was fine before the post deletion.</p>
  
  <p>I tried altering the cols and floating elements to no avail. Using Chrome dev tools, I see that the sidebar is nested in an em tag that isn't in the code. Tried clearing application cache. No effect.</p>
  
  <p>I suspect this has something to do with the blade templating language and parsing the html, although if it is, I have no idea how to fix this other than manually installing the sidebar on every page.</p>
  
  <p>How do I fix this??</p>
  
  <p>Code can be found here: <a href="https://github.com/gkennedy87/Hillcrest/tree/master/resources/views" rel="nofollow noreferrer">https://github.com/gkennedy87/Hillcrest/tree/master/resources/views</a></p>
  
  <p>(It seems that laravel is also wrapping the footer in an em tag. Although this is a non-issue at the moment)</p>
  
  <pre><code>// views/posts/index.blade.php
  @extends('layouts.app')
        @section('content')
        @include('inc.navbar')
  
          &lt;div class="container"&gt;
            &lt;div class="row"&gt;
  
               &lt;div class="col-md-8 col-lg-8"&gt;
                 &lt;h1&gt;Our Blog&lt;/h1&gt;
                 @if (count($posts) &gt; 0)
                   @foreach ($posts as $post)
                     &lt;div class="card mb-4"&gt;
                       &lt;img class="card-img-top" src="http://placehold.it/750x300" alt="Card image cap"&gt;
                       &lt;div class="card-body"&gt;
                         &lt;h2 class="card-title"&gt;&lt;a href="/posts/{{$post-&gt;id}}"&gt;{{$post-&gt;title}}&lt;/a&gt;&lt;/h2&gt;
                         &lt;p class="card-text"&gt;{!! str_limit($post-&gt;body,200,'...')!!}&lt;/p&gt;
                         &lt;a href="/posts/{{$post-&gt;id}}" class="btn btn-primary"&gt;Read More &amp;rarr;&lt;/a&gt;
                       &lt;/div&gt;
                       &lt;div class="card-footer text-muted"&gt;
                         Posted on {{$post-&gt;created_at}} by
                         &lt;a href="#"&gt;Start Bootstrap&lt;/a&gt;
                       &lt;/div&gt;
                    &lt;/div&gt;
                  @endforeach
               {{$posts-&gt;links()}}
               @else
               &lt;p&gt;No Posts Found&lt;/p&gt;
             @endif
           &lt;/div&gt;
         @include('inc.sidebar')
  
      &lt;!--end row --&gt;
  &lt;/div&gt;
      &lt;!--end container --&gt;
  &lt;/div&gt;
  @include('inc.footer')
  @endsection
  
  
  // views/inc/sidebar.blade.php
  
  &lt;!--sidebar start --&gt;
      &lt;div class="col-md-4 col-lg-4"&gt;
          &lt;div class="sticky"&gt;
              &lt;!-- Search Widget --&gt;
              &lt;div class="card my-4"&gt;
                &lt;h5 class="card-header"&gt;Search&lt;/h5&gt;
                &lt;div class="card-body"&gt;
                  &lt;div class="input-group"&gt;
                    &lt;input type="text" class="form-control" placeholder="Search for..."&gt;
                    &lt;span class="input-group-btn"&gt;
                      &lt;button class="btn btn-secondary" type="button"&gt;Go!&lt;/button&gt;
                    &lt;/span&gt;
                  &lt;/div&gt;
                &lt;/div&gt;
              &lt;/div&gt;
  
              &lt;!-- Categories Widget --&gt;
              &lt;div class="card my-4"&gt;
                &lt;h5 class="card-header"&gt;Categories&lt;/h5&gt;
                &lt;div class="card-body"&gt;
                  &lt;div class="row"&gt;
                    &lt;div class="col-lg-6"&gt;
                      &lt;ul class="list-unstyled mb-0"&gt;
                        &lt;li&gt;
                          &lt;a href="#"&gt;Web Design&lt;/a&gt;
                        &lt;/li&gt;
                        &lt;li&gt;
                          &lt;a href="#"&gt;HTML&lt;/a&gt;
                        &lt;/li&gt;
                        &lt;li&gt;
                          &lt;a href="#"&gt;Freebies&lt;/a&gt;
                        &lt;/li&gt;
                      &lt;/ul&gt;
                    &lt;/div&gt;
                    &lt;div class="col-lg-6"&gt;
                      &lt;ul class="list-unstyled mb-0"&gt;
                        &lt;li&gt;
                          &lt;a href="#"&gt;JavaScript&lt;/a&gt;
                        &lt;/li&gt;
                        &lt;li&gt;
                          &lt;a href="#"&gt;CSS&lt;/a&gt;
                        &lt;/li&gt;
                        &lt;li&gt;
                          &lt;a href="#"&gt;Tutorials&lt;/a&gt;
                        &lt;/li&gt;
                      &lt;/ul&gt;
                    &lt;/div&gt;
                  &lt;/div&gt;
                &lt;/div&gt;
              &lt;/div&gt;
  
              &lt;!-- Side Widget --&gt;
              &lt;div class="card my-4"&gt;
                &lt;h5 class="card-header"&gt;Side Widget&lt;/h5&gt;
                &lt;div class="card-body"&gt;
                  You can put anything you want inside of these side widgets. They are easy to use, and feature the new Bootstrap 4 card containers!
                &lt;/div&gt;
              &lt;/div&gt;
  
              &lt;/div&gt;
              &lt;/div&gt;
  
          &lt;!-- sidebar end --&gt;
  </code></pre>