Html markup in cakephp's $html->link, eg. $html->link('Hey')?

前端 未结 2 1978
轮回少年
轮回少年 2021-01-06 07:42

I have this block of code in a cakephp .ctp file:

Html->link(\'Hello Stack Overflow\',

2条回答
  •  無奈伤痛
    2021-01-06 08:16

    You need to disable HTML entity conversion:

    echo $this->Html->link(
        'Hello Stack Overflow',
        array('controller'=>'pages', 'action'=>'home'),
        array('escape' => FALSE)
    );
    

提交回复
热议问题