【问题标题】:Cakephp 2.5. : how to use html tags and autoLinkUrls in this case蛋糕PHP 2.5。 : 在这种情况下如何使用 html 标签和 autoLinkUrls 【发布时间】:2016-10-18 11:13:26 【问题描述】:
我有一个这样的文本部分:
<p><?php echo __('<strong>some strong text</strong> some other text THIS IS AN URL more other text <strong>more strong text</strong> and finally end of text'); ?></p>
<p>
<?php
$string = '<strong>some strong text</strong> some other text ';
$string .= 'https://www.example.com';
$string .= ' more other text <strong>more strong text</strong> and finally <b>end of text</b>';
echo $this->Html->link(__($string),'http://www2.test.com',['escape'=>false]);
?>
</p>