website.com" target="_blank">https://website.com</a> hahahaThis is a link: <a href="https://website.com" target="_blank">https://website.com</a> hahaha它不
如何在CakePHP中通过Html Helper截断链接?
这本书只截断文本字符串,但是如何截断这样的链接呢?$this->Html->link('This is a very long link that needs to be truncated', '/pages/home', array('class'=> 'button', 'target' => '_
我尝试过的:let link = '<span>Some text {some text inside}</span>'
link = link.replace('\{([^}]+)\}', `<a href=${link} target="_blank" key="anchor">some text inside<