Escape HTML characters in datagrid ← Datagrid Display In data.php, replace the following$data[] = $row[$col_name]; with$data[] = htmlspecialchars($row[$col_name]);