I am trying to get some HTML with my dataTable request.
I use Laravel DataTable library. When I get the data, the page displays the HTML as a normal text in the column which I don't want, I wanna display it as a normal HTML.
public function suppliers(){
$Suppliers = Suppliers::getSuppliersView();
return Datatables::of($Suppliers)
->addColumn('operations', '<button id="{{ $serial_no }}" class="btn btn-primary">Edit</button>')
->rawColumns(['operations'])
->make();
}
Any help about this issue? Thanks.