title: Return html content via Ajax Laravel DataTable (using yajrabox package)
body: <p>I am using this package <a href="https://datatables.yajrabox.com/starter" rel="noreferrer">https://datatables.yajrabox.com/starter</a> to implement ajax datatable in my laravel application.</p>
  
  <p>In my controller class, I have the following method to return the data for the datatables like this:</p>
  
  <pre><code>function ajaxList()
  {
      // Load users with users
      $users = User::with('group', 'organisation');
  
      // Finished
      return Datatables::eloquent($users)
          -&gt;editColumn('is_admin', function(User $user) {
              return '&lt;i class="fa fa-'. ($user-&gt;is_admin ? 'check' : 'times') .'" aria-hidden="true"&gt;&lt;/i&gt;';
          })
          -&gt;make(true);
  }
  </code></pre>
  
  <p>On the view, I render the table and initiate the ajax request like this:</p>
  
  <pre><code>&lt;table id="users-table" class="table table-hover table-bordered" cellspacing="0" width="100%"&gt;
      &lt;thead&gt;
          &lt;tr&gt;
              &lt;th&gt;User ID&lt;/th&gt;
              &lt;th&gt;Is Admin?&lt;/th&gt;
              &lt;th&gt;First Name&lt;/th&gt;
              &lt;th&gt;Last Name&lt;/th&gt;
              &lt;th&gt;Created At&lt;/th&gt;
              &lt;th&gt;Updated At&lt;/th&gt;
              &lt;th&gt;Action&lt;/th&gt;
          &lt;/tr&gt;
      &lt;/thead&gt;
  &lt;/table&gt;
  &lt;script&gt;
      $('#users-table').DataTable({
          processing: true,
          serverSide: true,
          ajax: '/users/ajaxList',
          columns: [
              {data: 'id', searchable: false },
              {data: 'is_admin', searchable: false },
              {data: 'first_name'},
              {data: 'last_name'},
              {data: 'created_at', searchable: false },
              {data: 'updated_at', searchable: false },
              {data: 'action', searchable: false, orderable: false }
          ]
      });
  &lt;/script&gt;
  </code></pre>
  
  <p>When this renders, the "is_admin" column appears to show the raw html rather than rendering the font awesome icon like this:</p>
  
  <p><a href="https://i.stack.imgur.com/DiOnB.png" rel="noreferrer"><img src="https://i.stack.imgur.com/DiOnB.png" alt="enter image description here"></a></p>
  
  <p>Any ideas how to fix this? I tried returning the column data like this also:</p>
  
  <pre><code>return '{!! &lt;i class="fa fa-'. ($user-&gt;is_admin ? 'check' : 'times') .'" aria-hidden="true"&gt;&lt;/i&gt; !!}';
  </code></pre>
  
  <p>This didn't help either.</p>