Javascript Parse Error
I am using laravel 5.1 PHP framework and a sign chart from a javascript, But when i send data from controller with ' (single quote) but JavaScript Parse as some undefined value $d
Solution 1:
According to the Laravel Blade documentation, using {{ }}
results in an escaped string, which would cause the behavior that you're seeing.
Try using {!! !!}
instead; using that syntax will tell Blade to not escape the string.
...
dataPoints: [{!! $data_B_Temp !!}]
...
Post a Comment for "Javascript Parse Error"