Quantcast

[ZF2 Beta 5] Form/Label - unescape HTML?

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[ZF2 Beta 5] Form/Label - unescape HTML?

cmple
This post has NOT been accepted by the mailing list yet.
Hi,
Is there a way to set the 'escape' => false for the label of an element?

for example:

$this->add(array(
                        'name' => 'submit',
                        'escape' => false ???,
                        'options' => array(
                                'type' => 'button',
                        ),
                        'attributes' => array(
                                'class' => 'button-text-only primary-action',
                                'id' => 'submit',
                                'label' => '< span class="ui-button-text" >' . $translate('Button Login') . '</ span >',
                                'type' => 'submit'
                        ),
                ));

<?php echo $this->formButton($form->get('submit')); ?>


Thanks!!!
Roman.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: [ZF2 Beta 5] Form/Label - unescape HTML?

cmple
This post has NOT been accepted by the mailing list yet.
anyone?
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: [ZF2 Beta 5] Form/Label - unescape HTML?

cmple
This post has NOT been accepted by the mailing list yet.
bump
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: [ZF2 Beta 5] Form/Label - unescape HTML?

poashoas
I am looking for the same, please reply anyone....
Loading...