CakePHP 2.4: Escaping Javascript within the confirmation message of html->link? -


this have :

<?php  $textdelete = __('delete' . ($index ? '' : ' ' . $identifier)); $linkdelete = array('controller' => 'students', 'action' => 'delete', $id); $confirmdelete = 'you delete student:\n\n\x22'                    . $student['student']['last_name'] . ', '                     . $student['student']['first_name'] . ' '                     . $student['student']['middle_initial']                     . '\x22\n\n  sure?';  echo $this->html->link(                        $textdelete,                        $linkdelete,                        array('escape' => false),                        $confirmdelete                     );  ?> 

it working fine, till upgraded cakephp 2.4! confirmation message (all of them) of link shows \n\n , \x22 instead of quotes symbol or new lines, ideas?

honestly going delete question! thought silly else waste half day on it! replace single quotes double quotes , normal again! (embarrassing)


Comments

Popular posts from this blog

php - SPIP: From Tag directly to an article -

jquery - isAjaxRequest always return false -

ruby on rails - In a controller spec, how to find a specific tag in the generated view? -