Skip to content
This repository has been archived by the owner on Jul 10, 2020. It is now read-only.

disable_html_escaping in Dropdown Item Labels #173

Open
Avaroth opened this issue Apr 28, 2016 · 1 comment
Open

disable_html_escaping in Dropdown Item Labels #173

Avaroth opened this issue Apr 28, 2016 · 1 comment
Assignees

Comments

@Avaroth
Copy link

Avaroth commented Apr 28, 2016

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
                )
            )
            )
        )
    )
));
@neilime neilime self-assigned this Sep 19, 2016
@neilime
Copy link
Owner

neilime commented Nov 3, 2016

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants