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

disable_html_escaping in Dropdown Item Labels #173

@trybguet-dev

Description

@trybguet-dev

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

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions