如何在 cakephp 的 cake php 链接中写入两个 span 标签或两个元素?
例如
<?php
$title = '$this->Html->tag('span', 'Test Title', array('style' => 'color:blue'))';
$status = '$this->Html->tag('span', ' (New) ', array('style' => 'color:black'))';
echo $this->Html->link( $title.$status, 'people/video'.$person['video']['id'], 'target' => '_blank'));
?>
这样我就可以输出
<a href="people/video/765" target ="_blank" ><span style="color: blue">Test Title</span><span style="color: #000000;"> (New) </span> </a>