title: Remove &quot from json using laravel
body: <p>Hello I wanted to know how to use blade variable in javascript.
  here is my query in laravel</p>
  
  <pre><code>$users=json_encode(DB::table('ledger')-&gt;select('name','openingbalance')-&gt;get());
  </code></pre>
  
  <p>I'm trying to access this in my javascript file like shown below </p>
  
  <pre><code>var users ="{{ $users }}";
  </code></pre>
  
  <p>and I get output as shown below:</p>
  
  <pre><code>[
        {&amp;quot;name&amp;quot;:&amp;quot;Harsh&amp;quot;,&amp;quot;openingbalance&amp;quot;:&amp;quot;5755.00&amp;quot;},      
        {&amp;quot;name&amp;quot;:&amp;quot;Harh&amp;quot;,&amp;quot;openingbalance&amp;quot;:&amp;quot;-12000.00&amp;quot;},
        {&amp;quot;name&amp;quot;:&amp;quot;gfgfhgf&amp;quot;,&amp;quot;openingbalance&amp;quot;:&amp;quot;-333.00&amp;quot;}
  ]
  </code></pre>
  
  <p>I wanted to know how to remove &amp;quot so i get a perfect json to use.</p>