Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/DataTableAbstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -737,6 +737,8 @@ protected function filterRecords(): void
public function filtering(): void
{
$keyword = $this->request->keyword();
/**Following line of code to convert & or any other special character to html string. **/
$keyword = (is_string($keyword) || $keyword instanceof Htmlable) ? e($keyword) : $keyword;

if ($this->config->isMultiTerm()) {
$this->smartGlobalSearch($keyword);
Expand Down