Hi folks,

I'm trying to get

<p><label for="EncryptionName2" class="required">Name:</label>
<br />
<input type="text" name="EncryptionName" id="EncryptionName2" value=""
class="text" /></p>

in my view, but I get

<p><label for="EncryptionName2" class="required">Name:</label>
<br>
<input type="text" name="EncryptionName" id="EncryptionName2" value=""
class="text" /></p>

instead. Problem is br tag which is not XHTML valid.

I have set $view->doctype('XHTML1_STRICT'); also.

My code is:

$text2 = new Zend_Form_Element_Text(array('id' => 'EncryptionSize' .
$suffix, 'name' => 'EncryptionSize', 'value' => $encryptionSize, 'class' =>
'text'));
                $text2->setLabel('Size:');
                $text2->setDecorators(array(
                    'ViewHelper',
                        array(array('descBreak' => 'HtmlTag'), array('tag' => 
'br', /*'openOnly'
=> true,*/ 'placement' => Zend_Form_Decorator_Abstract::PREPEND)),
                        'Label',
                        array('HtmlTag', array('tag' => 'p'))
                ));

Any idea how to get valid XHTML?

Regards,
Saša Stamenković
-- 
View this message in context: 
http://www.nabble.com/Hammer-%3Cbr--%3E-tag-out-with-decorators-tp24127697p24127697.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to