php - How can i do html decode text returning from html helper? cakephp 3.x -


i use this.

echo  html_entity_decode(       $this->form->postlink( '<i class="fa fa-fw fa-remove"></i>delete',                              ['action' => "delete",$item->id],                              ['confirm' => 'are sure?'])       ); 

no problems here want don't use html_entity_decode. have solution?

echo     $this->form->postlink( '<i class="fa fa-fw fa-remove"></i>delete',                                  ['action' => "delete",$item->id],                                  ['confirm' => 'are sure?']); 

result: <i class="fa fa-fw fa-remove"></i>delete

echo     $this->form->postlink( '<i class="fa fa-fw fa-remove"></i>delete',                              ['action' => "delete",$item->id],                              ['confirm' => 'are sure?','escape'=>false]); 

you correct params


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -