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
Post a Comment