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 ?
Asked
Active
Viewed 178 times
0

jones
- 1,423
- 3
- 35
- 76
-
Unicode chars are plain chars - you could check for them like for any other char. – Sebastian Apr 26 '16 at 06:19
-
No spreadsheet file formats that I'm aware of will recognise fontawesome in any way – Mark Baker Apr 26 '16 at 07:06
-
@MarkBaker But when i write the `td->nodeValue` with `DOMDocument` it can not write it to cell, it may be cause of `DOMElement` ? – jones Apr 26 '16 at 07:29
1 Answers
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