Bug group by with field as icon

Hello everyone,

I have a grid with two fields where the value presented is a Font Awesome icon created like this:

SELECT ’ < i class=“fa-solid fa-copy” style=“font-size:16px;color:grey;”> ’
FROM docs
WHERE id = ‘{docs.id}’

Everything is good until I try to create a group by in the grid. Neither the Dynamic nor Static work. The error is the following:

Parse error: syntax error, unexpected identifier "fa", expecting ")" in C:\Program Files (x86)\NetMake\v9-php81\wwwroot\scriptcase\app\sglex14\grid_osmeus_filtro_ativos_principais_1\index.php on line 2734

Does anyone know how to solve this?
Thnak you!