I fear i am being thick, but could someone help me with this code:

$goods_in_transit = new Zend_Form_Element_Text('goods_in_transit');     
$label = $goods_in_transit->getDecorator('label');

print_r( $label->getOptions() );
// this prints :: Array ( [tag] => dt )

$label->setOption('escape', false);

print_r( $label->getOptions() );
// this prints :: Array ( [tag] => dt [escape] => )

$goods_in_transit->setLabel('Goods in Transit insurance up to')
        ->setDescription('e.g. £25,000. (leave blank if not applicable)');
                
$label = $goods_in_transit->getDecorator('label');
print_r( $label->getOptions() );
// this prints :: Array ( [tag] => dt [escape] => )


It always escapes my pound sign. I have read the docs and the source, but I
can't hit that sweet spot :(

monk.e.boy
-- 
View this message in context: 
http://n4.nabble.com/zend-form-escape-help-tp997494p997494.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to