datagrid icon indicating copy to clipboard operation
datagrid copied to clipboard

Added noescape macro for columnsSummary

Open revoke opened this issue 7 years ago • 3 comments
trafficstars

Because for rendering I am using setRenderer() callback with my own HTML format

revoke avatar Apr 04 '18 16:04 revoke

@revoke Could that be decided by some setter? ColumnsSummary->setTemplateExcaping($escape = true)

paveljanda avatar Apr 06 '18 07:04 paveljanda

I think it's not necessary because it is a bug fix.

revoke avatar Apr 12 '18 08:04 revoke

It is a possible security issue now. I would give it a thumb up when there is a setter for it.

paveljanda avatar Sep 19 '18 09:09 paveljanda

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.

f3l1x avatar Dec 14 '22 10:12 f3l1x