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 - How to save instance state of selected radiobutton on menu -

python 3 IndexError: list index out of range -

IF statement in MySQL trigger -