是否可以使用 Bootstraps formhelper 将自定义 html 代码插入到选项名称中?
<?php
echo $this->BootstrapForm->input('where', array(
'options' => array('1' => 'foo'),
'type' => 'radio'
));
?>
我希望它是
<?php
echo $this->BootstrapForm->input('where', array(
'options' => array('1' => '<span class="italic">f</span>oo'),
'type' => 'radio'
));
?>
但是当我插入代码时,它会从输出中删除。