diff --git a/src/DataTableAbstract.php b/src/DataTableAbstract.php index 2256ed5f..0927567c 100644 --- a/src/DataTableAbstract.php +++ b/src/DataTableAbstract.php @@ -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 = e($keyword); if ($this->config->isMultiTerm()) { $this->smartGlobalSearch($keyword);