title: Show php data in data-formatter function of bootstrap-table
body: <p>I have created a bootstrap-table in <code>table.php</code> file and define a table heading with data-formatter like this</p>
  
  <p><code>&lt;th data-field='edit'  data-formatter="editFormatter"&gt;Edit&lt;/th&gt;</code></p>
  
  <p>and i have create function for this,</p>
  
  <pre><code>function editFormatter(value, row)
  {
     return `&lt;a href="&lt;?= URL::to('xyz/label'); ?&gt;"  &gt;&lt;i class="fa fa-pencil sg-edit-btn" &gt;&lt;/i&gt;&lt;/a&gt;`
  }
  </code></pre>
  
  <p>but when I inspect on <code>table.php</code> page it is showing anchor like this,</p>
  
  <p><code>&lt;a href="&lt;?= URL::to('xyz/label'); ?&gt;</code></p>
  
  <p>why php code doesn't convert like this,</p>
  
  <p><code>&lt;a href="https://localhost/app/public/xyz/label" class="btn sg-primary-btn"&gt;</code></p>
  
  <p>is there any way to do this? thanks in advance</p>