我想转换这个 html 代码
<a class="dropdown-toggle" href="#" data-toggle="dropdown">
Company <b class="caret"></b>
</a>
变成cakephp
这样:
<?php
echo $this->Html->link(
'Company' $this->Html->tag('b', '', array('class' => 'caret')),
'#',
array(
'class'=>'dropdown-toggle',
'data-toggle'=>'dropdown',
'escape'=>false
)
) ?>
但它在我的布局中显示了意外的行为。我该如何解决?