zf2-twb-bundle icon indicating copy to clipboard operation
zf2-twb-bundle copied to clipboard

disable_html_escaping in Dropdown Item Labels

Open trybguet-dev opened this issue 9 years ago • 1 comments

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
                )
            )
            )
        )
    )
));

trybguet-dev avatar Apr 28 '16 14:04 trybguet-dev

This behavior is supported by pull request #174, waiting for documentation before merging.

neilime avatar Nov 03 '16 22:11 neilime