datagrid
datagrid copied to clipboard
Added noescape macro for columnsSummary
trafficstars
Because for rendering I am using setRenderer() callback with my own HTML format
@revoke Could that be decided by some setter? ColumnsSummary->setTemplateExcaping($escape = true)
I think it's not necessary because it is a bug fix.
It is a possible security issue now. I would give it a thumb up when there is a setter for it.
There is a simple way how to do it without |noescape.
$grid->addColumnNumber('age', 'Age')
->setRenderer(function (Row $row): int {
return new \Latte\Runtime\Html('My escaped text');
});
Closing it here.