CakePHP 2.4:在html的确认消息中转义Javascript->;链接

CakePHP 2.4:在html的确认消息中转义Javascript->;链接,javascript,cakephp,escaping,Javascript,Cakephp,Escaping,这就是我所拥有的: <?php $textDelete = __('Delete' . ($index ? '' : ' This ' . $identifier)); $linkDelete = array('controller' => 'students', 'action' => 'delete', $id); $confirmDelete = 'You are about to delete student:\n\n\x22'

这就是我所拥有的:

<?php 
$textDelete = __('Delete' . ($index ? '' : ' This ' . $identifier));
$linkDelete = array('controller' => 'students', 'action' => 'delete', $id);
$confirmDelete = 'You are about to delete student:\n\n\x22'
                   . $student['Student']['last_name'] . ', ' 
                   . $student['Student']['first_name'] . ' ' 
                   . $student['Student']['middle_initial'] 
                   . '\x22\n\n  Are you sure?';

echo $this->Html->link(
                       $textDelete,
                       $linkDelete,
                       array('escape' => false),
                       $confirmDelete
                    );
 ?>


在我们升级到CakePHP2.4之前,它工作得很好!现在链接的确认消息(全部)显示的是\n\n和\x22而不是引号符号或新行,有什么想法吗?

老实说,我要删除这个问题!但我觉得别人在这上面浪费半天太傻了!
只要用双引号替换单引号,一切就会恢复正常!(尴尬)

该死的。。。还是浪费了15分钟。。。谢谢忘记了换行符和十六进制不能用在撇号中。。。也请看:上帝啊!这篇文章是救命稻草!又撞车了(我也很尴尬!)