如何在cakephp 3中的链接中使用带内联css的span

如何在cakephp 3中的链接中使用带内联css的span,cakephp,Cakephp,我是cakephp新手,在我的布局中,我想使用以下代码 <a href="#">Home<span style="font-size:16px;" class="pull-right hidden-xs"></span></a> 如何使用Html helper重写它? 例如,类似以下代码: echo$this->Html->link('Home',['controller'=>'users','action'=>'Home')而不是。在链接中

我是cakephp新手,在我的布局中,我想使用以下代码

<a href="#">Home<span style="font-size:16px;" class="pull-right hidden-xs"></span></a>

如何使用Html helper重写它? 例如,类似以下代码:
echo$this->Html->link('Home',['controller'=>'users','action'=>'Home')
而不是。

在链接中添加'escape'=>false选项,这样它就不会试图翻译('escape')所有html字符

echo $this->Html->link(
        $this->Html->tag('span', 'Home', array(
            'class' => 'pull-right hidden-xs',
            'style' => 'font-size:16px;'
                )
        )
        , '#'
        , array(
    'escape' => false // Notice Here
        )
);