I have this block of code in a cakephp .ctp file:
Html->link(\'Hello Stack Overflow\',
You need to disable HTML entity conversion:
echo $this->Html->link(
'Hello <span>Stack Overflow</span>',
array('controller'=>'pages', 'action'=>'home'),
array('escape' => FALSE)
);
or
echo $this->Html->link('Hello', array('controller'=>'pages', 'action'=>'home')).' '.$this->Html->tag('span', $this->Html->link('Stack Overflow', array('controller'=>'pages', 'action'=>'home')), array());