zf2-twb-bundle
zf2-twb-bundle copied to clipboard
disable_html_escaping in Dropdown Item Labels
It would be great to be able to disable the html escaping in the DropDown Item Labels. Yet it's possible to disable it for the Button Label of the DropDown, but not for it's children (items).
Example usage:
$oForm->get('option_social')->setOptions(array(
'dropdown' => array(
'items' => array(
array(
'label' => '<i class="fa fa-facebook"></i> Facebook',
'label_options' => array(
'disable_html_escaping' => true
)
),
array(
'label' => '<i class="fa fa-twitter"></i> Twitter',
'label_options' => array(
'disable_html_escaping' => true
),
array(
'label' => '<i class="fa fa-instagram"></i> Instagram',
'label_options' => array(
'disable_html_escaping' => true
)
)
)
)
)
));
This behavior is supported by pull request #174, waiting for documentation before merging.