0

I'm using Laravel-Excel, When I load a view and parse that with DOMDocument then i write them to specific row and cell of table, now if on the view a column uses from fa-check-square-o icon, how i should detect that ? and how i should write that ? I think only we can check it's unicode for this, am I write ?

jones
  • 1,423
  • 3
  • 35
  • 76

1 Answers1

0

I Think you can render the view first to a variable then check if it has fontawesome icon example:

$myview = view('blade template')->render();

If(strpos($myview,'fa-check'))
{
  // we detected font awesome icon, do something.
}
Kamaro
  • 955
  • 1
  • 10
  • 11