Closed
Description
Summary of problem or feature request
When selecting data with valid utf-8 characters, the JsonResponse html encodes the data. I can disable this by using the rawColumns method, but I do want it to escape html specific things, just not normal characters that would not have an impact on xss. I think that maybe characters like '
('
or U+0027
) should maybe be unmangled by default. My apologies if I've overlooked something or this has been addresses since version 8. I searched around in the issues, and while I did find some issues related to this, I didn't spot anything specific to this issue.
Code snippet of problem
return DataTables::eloquent(MyModel::select())->toJson();
data that shows the issue: "COEUR-D'ALENE"
is returned as "COEUR-D'ALENE-ID"
System details
- Centos 7
- PHP 7.2
- 5.6
- 8