I am using the laravel blade format for my html and I am passing a few php variables for javascript functions. Now the problem passed to the javascript variable can have special characters. Now I want the javascript function to be as follows:
what I want:
jsFunction("argument1","argument2","argument3")
what i get:
jsFunction('argument1','argument2','argument3')
Now my blade format code is:
<a href="#" onclick="displayBannerInvoice('{{$bannerProperty->property_id}}','{{ $bannerProperty->id }}','{{$bannerProperty->end_date}}','{{$bannerProperty->no_of_days}}','{{$bannerProperty->total}}','{{$bannerProperty->vat_percentage}}')"></a>
source
share