Hi was wondering when I return JSON result using laravel 5 it replace every single '/'
with '\/'
which cause me a trouble as the url I return through the controller is no longer working
for example, in controller:
$url = 'icon/nature/animals/cat-2.png';
$result = array('data'=>$url);
return response()->json($result);
in jquery response it returns 'icons\\/nature\\/animals\\/cat-2.png'
How can I avoid this to happen, thank you