Hi, I would suggest to add a new helper function to manage html attributes in a simple way.
twig example:
{% set attr = {
'aria-expandend': 'false',
disabled: true,
hidden: false,
id: 123,
title: 'cli"<ck',
} %}
<button{{ html_attr(attr) }}>Test</button>
output:
<button aria-expandend="false" disabled id="123" title="cli"<ck">Test</button>
PR: #3199
Hi, I would suggest to add a new helper function to manage html attributes in a simple way.
twig example:
output:
PR: #3199